Skip to Content
gnux

-v, --invert-match

Select the lines that do not match.

An option of grepx.

Usage

grepx -v PATTERNS [FILE]...
grepx --invert-match PATTERNS [FILE]...

Details

ShortLongValueDefaultMeaning
-v--invert-matchnoneselect the lines that do not match

Examples

Drop comment lines and empty lines from a configuration file

grepx -v -e '^#' -e '^$' app.conf

Help in the terminal

gnux help grepx --invert-match

On this page