echo -e "text 033[1mbold033[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[1mbold033[0m text you can do
echo -e `cat test.txt`