but it is taking forever and I don't know if it is going to be correct at the end
I don't know what -A1 -A1 mean (I'm assuming that is col1 File1 col1 File2)
input of file 2 (this file has 2,498,588 columns with single digit numbers, starting with column 1 as shown below, each column is separated by a space)
---------- Post updated at 11:10 PM ---------- Previous update was at 11:03 PM ----------
I just checked the results I obtained with grep -A1 -A1 -f file1.txt file2 > file3
and they are wrong. Instead of getting only 364 rows, I get 367 and some of the ids of file 1 are missing in the output file 3. I want to match the ids from file1 (my "golden" list) in file2 and output that in file 3
input of file2.ped (this file has more than 2 million columns with single digit numbers, starting with column 1 as shown below, each column is separated by a space)
I already tried that grep code and did not work either. I don't know if it is because of the file extension of file2.ped (ped is text file that can handle millions of columns)
---------- Post updated at 08:13 PM ---------- Previous update was at 05:41 PM ----------
The memory is exhausted when using these command lines.