|
Ignore identical lines
Hello Experts,
I have two files called "old" and "new". My old file contains 10 lines and my new file contains 10 + "n" lines.
The first field in both these files contain ID. I sort these two files on ID. I am interested in only the lines that are in the new file and not in old.
I tried the below but was not successful
awk -F"\t" '{a[$] = $0} END { for (x in a) { print a[x] } }' maout > nodup
I have attached a file which gives an example of how my input files look like and the output i expect
Any suggestions would be appreciated.
Many Thanks in advance.
|