Posts Tagged ‘grep’

Find strings in one file which are not present in another file

November 16, 2012

When there is one string per line and they are not sorted, the simplest solution  would be:

grep -Ffx file2 -v file1

Advertisements