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:
tail -f /var/log/mail.log | egrep --color 'expr1|expr2|$'
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:
tail -f /var/log/mail.log | egrep --color 'expr1|expr2|$'