$ ls /path/*.log | grep -v filename_exclude_pat | xargs grep -h line_include_pat >output.txt