Bash (Scripting) - printing bold text

by
Jeremy Canfield |
Updated: March 08 2020
| Bash (Scripting) articles
The following example from Stack Overflow demonstrates how to make bold text in Bash.
bold=$(tput bold)
normal=$(tput sgr0)
echo "this is ${bold}bold${normal} but this isn't"
Running this script will produce the following text.
this is bold but this isn't
Did you find this article helpful?
If so, consider buying me a coffee over at