Linux Terminal Glossary
›
Text Processing
grep -v 'pattern' file.txt
Category:
Text Processing
grep -v 'pattern' file.txt
Copy command
Invert match — show lines that do NOT match
Prints every line that does NOT match the pattern — inverts the search. -v means 'invert'.
Looking for more?
Search all 7,657 commands
— works offline, in English or Spanish, and fixes typos.