egrep

Updated: October 28, 2024

Extended regular expression grep (UNIX)

Syntax:

egrep [-cilnqsvx]
      [-e expression | -f expression_file]...
      [file...]
egrep [-cilnqsvx] expression [file...]

Runs on:

QNX Neutrino, Microsoft Windows

Options:

See grep for a complete listing.

Description:

The egrep utility does an extended regular expression grep (equivalent to grep -E). See the documentation for grep for details.

Note: QNX Neutrino also supports a toybox version of this utility. For more information, go to the toybox entry of this reference.

Exit status:

0
Lines were found matching the expression provided.
>0
An error occurred or no matching lines were found.