how to highlight certain words while tailing log on unix/linux
Posted on 2012-03-25
Is there a way to highlight few words while tailing (tail -f logfile.log) log files on unix or linux.
Bascially, would like to highlight (ONLY the word or the word background color) for certain keywords ex "ERROR" or "FAILED" ...so while tailing (scrolls up) it can be easily noticed.
Right now, I have a script which scans the log file and write only the lines which I'm interested in to a different file...then I open the newly created file and so on.
thanks in advance