Tailing logs
Chuck Robey
chuckr at telenix.org
Sat Aug 23 15:08:32 UTC 2008
DAve wrote:
> 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
>
> Thank you all, I got what I needed!
>
> DAve
>
I do this commonly to catch the lines with the word "Building" in them,
from a file "build.out:
tail -F build.out | grep --color=always Building
When I get a free moment, I need to see about making that --color-always
the default.
More information about the freebsd-questions
mailing list