Let’s say you have two text files, FileA and FileB. You want a file that has all the lines of FileA that are_ not_ in FileB. How do you do that?
The simple answer is
-v option inverts the search, and only prints
lines that do not match. The
-f option is used to specify a file that
contains a list of all the patterns for which to look - one pattern per line.