I am trying to print a text in the terminal using echo command.
I want to print the text in a red color. How can I do that?
If you want to improve the readability of the code, you can echo the string first then add the color later by using sed:
echo
sed
echo 'Hello World!' | sed $'s/World/\e[1m&\e[0m/'