How do I use bold font in terminal? (echo/cat)
Here's how:
echo -e "text \033[1mbold\033[0m text"
See "Colorizing" Scripts tutorial.
It's not possible to do for cat
that way. cat
will merely print the characters of the file onto standard out. The closest thing I can come up with is the following:
If you put text \033[1mbold\033[0m text
you can do
echo -e `cat test.txt`