egrep pattern [file...]Arguments explained
- Options adjust output or behavior.
- Arguments name the files, services, hosts, or values the command should work with.
Common examples
egrep 'error|fail|warn' app.logFinds lines matching any of the alternatives.
grep -E 'error|fail|warn' app.logUses grep's extended regex option explicitly.
| Field | Details |
|---|---|
| Command | egrep |
| Category | Search and Filtering |
| Primary use | Searches with extended regular expressions. |
| Syntax | egrep pattern [file...] |