Seeking for simple tool that colors text passed through pipe
Hi all,
I was wondering if there is a command line tool that coold be placed on an output of a command through a pipe (like a tail, or cat command) and that colorizes matched patterns given as arguments. This could be really useful when live monitoring log files through tail command without having to use grep to filter text. It could allow to see the matched patterns in different color without having to truncate parts of the text scrolling.
Does somebody knows of the existence of such thing ? If no can someone guide me through with libs to use so I could write a tool like that.(Mainly text coloration libs)
Thanks
|