
10-03-2007, 10:58 PM
|
| Junior Member | | Join Date: Sep 2009
Posts: 0
| |
Re: tail with color? * Logan Shaw wrote:
> Troy Piggins wrote:
>> I'm using 'tail -f /var/log/mail.log' to keep an eye on my mail
>> logs while testing. I was wondering if there is any tools
>> similar that might have the ability to color keywords (maybe
>> based on REs)? This would help certain keywords stand out more.
>
> Type "less /var/log/mail.log". Then type "/foo", where "foo" is
> a regular expression matching whatever you want to highlight, and
> hit return. Now type "F".
Thanks Logan, I didn't know less could 'follow'.
The other solution by Andreas I like because I can run through a
script and use 256 colors for all sort of regexes.
--
Troy Piggins
,-o
o ) Ubuntu linux 6.06 http://ubuntu.com RLU#415538 http://counter.li.org
`-o uptime: 19:57:53 up 20 days,1:26,2 users,load average:0.04,0.03,0.00 |