How to have tail -f show colored output
326
votes
25
answers
281183
views
I'd like to be able to tail the output of a server log file that has messages like:
INFO
SEVERE
etc, and if it's
SEVERE
, show the line in red; if it's INFO
, in green. What kind of alias can I setup for a tail
command that would help me do this?
Asked by Amir Afghani
(7373 rep)
Mar 1, 2011, 07:13 PM
Last activity: May 9, 2025, 02:50 PM
Last activity: May 9, 2025, 02:50 PM