Name
egrep [options] pattern [files] — grep
Synopsis
/bin stdin stdout - file -- opt --help --versionThe egrep command is just like grep, but uses a different (“extended”) language for regular expressions. It’s the same as grep -E.
Regular expression | Meaning |
| Any single character. |
| Match any single character in this list. |
| Match any single character NOT in this list. |
| Grouping. |
| Beginning of a line. |
| End of a line. |
| Beginning of a word. |
| End of a word. |
| Any alphanumeric character. |
| Any alphabetic character. |
| Any control character. |
| Any digit. |
| Any graphic character. |
| Any lowercase letter. |
| Any printable character. |
| Any punctuation mark. |
| Any whitespace character. |
| Any uppercase letter. |
| Any hexadecimal digit. |
| Zero or more repetitions of a regular expression. |
| The character |
Plain | Extended | Meaning |
|
| Or. |
|
| One or more repetitions of a regular expression. |
|
| Zero or one occurrence of a regular expression. |
|
| Exactly |
|
|
|
|
| Between |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access