This is a nice command which compare two files and print lines that are in file "newfile" and are not in file "oldfile":
awk 'FNR==NR{a[$0]++;next}!a[$0]' oldfile newfile
This is a nice command which compare two files and print lines that are in file "newfile" and are not in file "oldfile":
awk 'FNR==NR{a[$0]++;next}!a[$0]' oldfile newfile
Bookmarks