in reply to Perl equivilant to tail -f
I orginially tried tail -f "filename" | grep "goo" >>./file.txt but there is a buffer issueJust need an extra switch on the grep:
(note that the grep manpage may incorrectly may '--line-buffering' -- details here)tail -f "filename" | grep --line-buffered "goo" >>./file.txt
|
|---|