Skip to Content
gnux

-q, --quiet

Suppress all normal output; stop at the first selected line.

An option of grepx.

Usage

grepx -q PATTERNS [FILE]...
grepx --quiet PATTERNS [FILE]...

Details

ShortLongValueDefaultMeaning
-q--quietnonesuppress all normal output; stop at the first selected line

Examples

Test in a script whether a file contains a line, printing nothing

grepx -q '^version = ' config.toml && echo found

Help in the terminal

gnux help grepx --quiet

On this page