View Single Post
  #7  
Old 10-03-2007, 10:58 PM
unix unix is offline
Junior Member
 
Join Date: Sep 2009
Posts: 0
Default Re: tail with color?

* Theo v. Werkhoven wrote:
> The carbonbased lifeform Troy Piggins inspired comp.unix.admin with:
>> * 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.

>
> Or use e.g. http://www.vanheusden.com/multitail/ , or
> http://lofimo.anzac.at/ or another log-analyser


That's it! THankyou.

--
Troy Piggins
,-o
o ) Ubuntu linux 6.06 http://ubuntu.com RLU#415538 http://counter.li.org
`-o uptime: 09:43:19 up 20 days,15:12,2 users,load average:0.00,0.01,0.00
Reply With Quote