Definition:
- grep, egrep, fgrep, rgrep - print lines that match patterns
- global regular expression print
- Searches for PATTERNS in each FILE.
- PATTERNS is one or more patterns separated by newline characters, and grep prints each line that matches a pattern.
- Typically PATTERNS should be quoted when grep is used in a shell command.
- A FILE of “-” stands for standard input.
- If no FILE is given, recursive searches examine the working directory, and nonrecursive searches read standard input.
Synopsis:
grep [OPTION...] PATTERNS [FILE...]
grep [OPTION...] -e PATTERNS ... [FILE...]
- …
List of options: