April 16th, 2013, 01:32 PM
Tail -f with grep
I want to monitor a file with "tail -f" but, only output specific grep matches.
$> tail -f /var/logs/mail.log | grep -i "timing"
That command doesn't work. can anyone suggest how to do this?
April 16th, 2013, 02:41 PM
Works for me. Perhaps your mail log doesn't receive as many entries with the word "timing" in it, so it isn't printing any??
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne
"I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
April 16th, 2013, 02:46 PM
ummm. ok. so tried it again and it does work.
Thanks for verifying!