Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Aug 2008 16:03:53 +0100
From:      Vincent Hoffman <vince@unsane.co.uk>
To:        DAve <dave.list@pixelhammer.com>
Cc:        'User Questions' <freebsd-questions@freebsd.org>
Subject:   Re: Tailing logs
Message-ID:  <48AED559.2000907@unsane.co.uk>
In-Reply-To: <48AECD11.1000705@pixelhammer.com>
References:  <48AECD11.1000705@pixelhammer.com>

next in thread | previous in thread | raw e-mail | index | archive | help
DAve wrote:
> I would love to have a way to tail a log, like piping to grep, except
> I see every line and the lines I would normally grep for are
> highlighted. That would be cool. Anyone know of a bash command or tool
> that will do this?
>
> Side note, I am tailing sendmail after changes to my outbound queue
> runners. I want to highlight my sm-mta-out lines but still see all lines.
>
> DAve
If you dont mind installing a few perl modules, try textproc/p5-ack
then just tail -f /var/log/LOGNAME | ack --color --passthru STRING



Vince





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48AED559.2000907>