awk Question? Search by line, using 2 files?
I need some help searching 2 files if possible?
I need to make sure that the sequence of characters in each line contained in in File1, is also contained somewhere in a line in File2.
If a line in File1 does not appear in File2, I need to redirect the output containging the contents of that line to a new file.
The file formats do not match, so line 1 in File1 may not appear at the leftmost of File 2, ie it could be 20 characters in. Anyone have any ideas.
I was thinking swk, but I do not know how to achieve this?
File1 is in this format:
File2 is in this format:
[root@c001n01 IC]# head -10 Enumeration.reflections.0.F1.uniq
(Thousands of lines)