Color awk output on commandline

awkcolorcommand-line-interface

When i process a logfile in awk, is there a possibility to colorize the output on commandline?

Best Answer

I think the only way is to use ANSI color codes:

{ print "Name: \033[1;31m" $2 "\033[0m" }

http://en.wikipedia.org/wiki/ANSI_escape_code

Related Topic