Colour code in shell script

Hello,

I am trying to colour code a single word in whole line. Can you please help.

I am able to colour code the whole line but not able to do only for single word

Query) I want to echo below line and colur code red to word FAILED only.

This server is FAILED in check.

Following might be useful

http://www.unix.com/unix-dummies-questions-answers/240535-highlight-text-shell-o-p.html
1 Like

Thanks...I am good now. Thread can be closed.