Good point :-) Less expensive:
perl -ne 'INIT{@ARGV=grep{!/filename_exclude_pat/}@ARGV} /line_include +_pat/&&print' /path/*.log >output.txt
In reply to Re^3: Need help copying "logs" to another file. -- oneliner
by haukex
in thread Need help copying "logs" to another file.
by REsaY
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |