Skip to content

Instantly share code, notes, and snippets.

@math3vz
Last active April 17, 2018 14:18
Show Gist options
  • Save math3vz/fd489da1a42814e513068eea9ae3ae1a to your computer and use it in GitHub Desktop.
Save math3vz/fd489da1a42814e513068eea9ae3ae1a to your computer and use it in GitHub Desktop.
[11:14:07] $ cat a.txt 
a
b

[matheusmmo@bbrandsti-07:~]
[11:14:47] $ cat b.txt 
b
c

[matheusmmo@bbrandsti-07:~]
[11:14:48] $ grep -xvFf a.txt b.txt
c

-x, --line-regexp         force PATTERN to match only whole lines
-v, --invert-match        select non-matching lines
-F, --fixed-strings       PATTERN is a set of newline-separated strings
-f, --file=FILE           obtain PATTERN from FILE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment