-E, --extended-regexp
PATTERNS are extended regular expressions.
An option of grepx.
Usage
grepx -E PATTERNS [FILE]...
grepx --extended-regexp PATTERNS [FILE]...Details
| Short | Long | Value | Default | Meaning |
|---|---|---|---|---|
-E | --extended-regexp | none | PATTERNS are extended regular expressions |
Examples
Match either of two words with an extended regular expression
grepx -E 'warn(ing)?|error' build.logPrint only the matched parts, here every IPv4-looking address
grepx -oE '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+' access.logHelp in the terminal
gnux help grepx --extended-regexp