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
In reply to Re: Perl equivilant to tail -f
by davidrw
in thread Perl equivilant to tail -f
by jklcrash
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |