When using grep --color=always
I can get pretty color highlighting for regex matches.
However, grep
only returns lines with at least one match.
I'm digging this little python utility. If not on debian, use alien to convert to rpm.
http://korpus.juls.savba.sk/~garabik/software/grc.html
regexp=.*red
colours="\033[38;5;160m"
count=once
This is a nice page on terminal colors.
http://www.pixelbeat.org/docs/terminal_colours/
(Queen's english is so colourful.)