Get color output in bash

Posted by Werner on Stack Overflow See other posts from Stack Overflow or by Werner
Published on 2010-03-13T10:24:14Z Indexed on 2010/03/13 10:25 UTC
Read the original article Hit count: 196

Filed under:

Hi,

when compiling some projects on linux terminal, I get usually a long output consisting of a lot of information. Usually this information is MONOCHROME. I wonder if bash can be modified somehow, so in all outputs or in some specific outputs (like from Makefile, etc) I can get different colors dependeing on, for instance:

make[1]: Leaving directory 

or

g++ -DHAVE_CONFIG_H     -I. 

etc.

Thanks

© Stack Overflow or respective owner

Related posts about bash