Bash - grep

Grep Man Page

Subtract a small file from a bigger file

grep -vf small_file.txt big_file.txt

Matching Control

  • -f FILE, –file=FILE: Obtain patterns from FILE, one per line. If this option is used multiple times or is combined with the
  • -v –invert-match: Invert the sense of match