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

link|improve this question

75% accept rate
feedback

2 Answers

up vote 2 down vote accepted

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

link|improve this answer
feedback

There are several programs that can colorize logfiles, source code and general text. In addition to the ones mentioned in this question, there are:

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.