-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
| Short | Long | Value | Default | Meaning |
|---|---|---|---|---|
-q | --quiet | none | suppress 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 foundHelp in the terminal
gnux help grepx --quiet