I have 2 files, each has more than 1000 rows,
head file 1
3.3 6.6 10 0 0.6 0.33 "Ha1_00044004__C"
0 0 0 10 0 1 "Ha1_00043486__A"
3.3 6.6 10 0 0.6 0.3 "Ha1_00045379__C"
3 6 9 1 0.6 0.4 "Ha1_00045316__C"
head file 2
0 0 0 10 0 1 "Ha1_00043486__A"
0 0 0 10 0 1 "Ha1_00043840__A"
0 0 0 10 0 1 "Ha1_00043671__A"
0 0 0 10 0 1 "Ha1_00044403__A"
3.3 6.6 10 0 0.6 0.3 "Ha1_00045379__C"
3 6 9 1 0.6 0.4 "Ha1_00045316__C"
I want to keep only those rows from the file1 that the last column "does not" match with the last column of file2. I would appreciate any help.
my desired output
3.3 6.6 10 0 0.6 0.33 "Ha1_00044004__C"
file1if the data in it's last column does not match the data in the last column offile2? In your examples, nothing will match. Even if it did, what do you want to do with the changes? Write them to another file? Change the first file to mirror the second one?