5

Printing colored text using script

view full story
linux-howto

http://unix.stackexchange.com – When I type below command in the shell I get the OUTPUT in green color. Command echo "\033[32mCONNECTING TO abpwrk\033[m"; Output(in green color) CONNECTING TO abpwrk But if I use the same statement in a small one line script and execute it.Then I get the output(in white color). \033[32mCONNECTING TO abpwrk\033[m What am I missing in the script.Do I need to define some extra parameters to initiate colors ? I am using k-shell. (HowTos)