diff two files and output lines not seen in file 2
Problem You need two diff two files and only output what is unique to file one. text file 1 contains: 1 2 3 4 5 text file 2 contains: 6 7 1 2 3 4 Solution $ awk ‘FNR==NR{a[$0]++;next}!a[$0]’ file1…
Problem You need two diff two files and only output what is unique to file one. text file 1 contains: 1 2 3 4 5 text file 2 contains: 6 7 1 2 3 4 Solution $ awk ‘FNR==NR{a[$0]++;next}!a[$0]’ file1…