How to echo colored text in linux shell scriptKedarDecember 4, 2009 Having a colourful display on shell script is something that’d beautify your experience. Using colour text and echos will help you to highlight and distinguish the shell output on a… View Post
2 responses to “How to echo colored text in linux shell script”
It worked for me Thanks.
ou will see your text color will turn red.
To reset it you can type following command to make text color white
bash $] tput setaf 7
or to reset everything again text modes
bash $] tput sgr0
Same things you can use in your bash script to colorize output.
Consider following sample bash script for colorize echo: