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

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

Theo
--
theo at van-werkhoven.nl ICQ:277217131 SuSE Linux
linuxcounter.org: 99872 Jabber:muadib at jabber.xs4all.nl AMD XP3000+ 1024MB
"ik _heb_ niets tegen Microsoft, ik heb iets tegen
de uitwassen *van* Microsoft"
Reply With Quote