tail -f with highlighting
Use
tail -f /path/to/my.log | perl -p -e 's/(KEYWORD_1|KEYWORD_2)/\033[7;1m$1\033[0m/g;'
to highlight all occurences of KEYWORD_1 and KEYWORD_2 in tail -f.
Tags: tail -f
This entry was posted
on Monday, October 5th, 2009 at 9:08 pm and is filed under Linux.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.