I'd like to tail a log file that's continuously being written to but would like to exclude various entries that are 'common' so I only see errors, etc. as they are thrown. I can pipe to grep -v "pattern" but would ideally like to use a file containing entries to skip. Any ideas?
-f option to
grep allows one to specify a file containing patterns, one pattern per line. See the
grep(1) man page.
In addition, the
unbuffer command available on some systems will disable the output buffering that normally occurs in pipelines. The addition of the
grep filter may otherwise delay the output of your pipeline. See the
unbuffer(1) man page for details.
grep -f FILE and it will obtain patterns from that file. See the man page for more information.