cat /path/to/file1 /path/to/file2 | awk '{if ($3~/^TCF/ || $3~/^GLI/) print $0;}' > /path/to/test1.txt
Do you know how to:
Include the first row in file1 in the test1.txt output? And, is it possible to include if TCF and GLI came from file1 or file2?
Thank you very much!