D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

[LUG] colour in bash print/echo statements?



When you've got a bash script or perl script running in bash that produces 
reams of output (e.g. if you logged it all to a file it would be 30k per run) 
is there any way of adapting the script to produce certain sections in 
colour?

e.g. critical error reports in red, success in green, warnings in magenta or 
cyan.

It would make it much easier to see what is going on.

-- 

Neil Williams
=============
http://www.codehelp.co.uk/
http://www.dclug.org.uk/
http://www.isbn.org.uk/
http://sourceforge.net/projects/isbnsearch/

http://www.biglumber.com/x/web?qs=0x8801094A28BCB3E3

Attachment: pgp00026.pgp
Description: signature


Lynx friendly