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).
Glossary: Linux for Developers
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).