I want to use tail follow two log files, but one of the log files has too much data, so I want it filtered with grep.
tail -f file1 file2|grep mySearch
The issue with this is that both files are run through the grep or rather the output of tail is run through grep. Only file2 should be filtered with the grep of mySearch. Any ideas?
I have tried named pipes, process substitutions, and compound commands.