Extracting rows from one file based on column entries in another file
Hi,
I currently have two files one that looks like this (File1): Code:
Code:
2R 10 34 12 21 23 So, based on the example I have here, my output would look like: Code:
2R 123 56 11 23 44 |
This should be straightforward using grep with the -F and -f options i.e. 'grep -Ff File1 File2'.
|
Quote:
Quote:
|
Have File1 and File2 been generated within Windows? Perhaps you need to run the files through a utility like fromdos to convert any CRLF pairs to LF only.
|
All times are GMT -5. The time now is 02:00 PM. |