grep [ -E | -F ] [ -i ] [ -h ] [ -H ] [ -L ] [ -r | -R ] [ -s ] [ -v ] [ -w ] [ -x ] [ -y ] [ [ [ -b ] [ -n ] ] | [
-c | -l | -q ] ] [ -p [ Separator ] ] { [ -e PatternList ... ] [ -f PatternFile ... ] | PatternList ... } [ File ...
]
The grep command searches for the pattern specified by the Pattern parameter and writes each matching line to
standard output. The patterns are limited regular expressions in the style of the ed or egrep command. The grep
command uses a compact non-deterministic algorithm.
-w
Does a word search.
-c
Displays only a count of matching lines.
Partager