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|$' |
Posts tagged ·
·...
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|$' |
After getting a new mp3-player (the iAudio D2 from COWON) I wanted to find a quick and easy way of “tagging” and converting a number of albums that I had in flac-format (or mp3) into mp3 of a certain bitrate. My goal was to just browse through my collection, and touch a file inside a directory if I wanted to convert it. When I was done with the touching, I’d just fire up a small script that did all the work for me, while I was doing something else. Here’s what I came up with.