fgrep pattern [file...]Arguments explained
- Options adjust output or behavior.
- Arguments name the files, services, hosts, or values the command should work with.
Common examples
fgrep '[ERROR]' app.logSearches for literal square brackets without regex escaping.
grep -F '[ERROR]' app.logUses grep's fixed-string option explicitly.
| Field | Details |
|---|---|
| Command | fgrep |
| Category | Search and Filtering |
| Primary use | Searches fixed strings instead of regular expressions. |
| Syntax | fgrep pattern [file...] |