If you’ve ever ran tail -f on a busy file and tried to find certain words or patterns as they fly by, then this little “trick” might be of some help:
|
1 |
tail -f /var/log/mail.log | egrep --color 'expr1|expr2|$' |
This entry was posted
on Saturday, October 22nd, 2011 at 17:16 and is filed under linux.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
I'd love to hear from you, so please leave a comment below!