Bootstrap FreeKB - Bash (Scripting) - printing bold text
Bash (Scripting) - printing bold text

Updated:   |  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 Buy Me A Coffee



Comments


Add a Comment


Please enter d20046 in the box below so that we can be sure you are a human.