Bash - grep
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
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.