1

Outputting colours in HP-UX scripts

view story
linux-howto

http://www.unix.com – Hi all, This is my first ever posting, so please be gentle with me :) I'm trying to write a script in HP-UX which outputs text in different colours, but although I can get the script to output different colours to the screen, I can't get it to write different colours to a file. Take the following example: Code: FGNORMS=$(printf "\033[m") FGGREEN=$(printf "\033[1;32m") FGBLUE=$(printf "\033[1;36m") echo $FGGREEN"Business Unit 9 Totals                  : "$FGNORMS echo $FGBLUE"Business Unit 9 T (HowTos)