- 论坛徽章:
- 0
|
有
Commands Reference, Volume 2, d - h
grep Command
Purpose
Syntax
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 ... ]
Description
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.
The grep command displays the name of the file containing the matched
Standard input |
|