Pete Freitag Pete Freitag

Inverted grep results

Published on July 29, 2005
By Pete Freitag

If you want to your grep results to only show lines not matching the pattern use the -v switch. You can also use --invert-match

fgrep -v file.log

The above prints lines from file.log that do not contain

Inverted grep results was first published on July 29, 2005.

Discuss / Follow me on Twitter ↯