Skip to content

Glossary: Linux for Developers

grep -q and -E

Also written: grep -q, grep -E, -q

`grep -E` allows patterns with `|` for "this or that". `grep -q` stays quiet and answers only through its exit code (0 if found, 1 if not).

Where the book teaches it

Related terms

exit code