grep¶
The following operations can be performed on "grep":
grep¶
Searches files or output for lines containing a match to the specified . By default, grep prints the matching lines.
Synopsis¶
grep [-c] [-E] [-i] [-v] [-w] [-x] <pattern>
Arguments¶
c
Suppress normal output. Instead print a count of matching lines. With the -v option, count non-matching lines.
E
Interpret <pattern> as an extended regular expression.
i
Ignore case distinctions.
v
Invert the sense of matching, to select non-matching lines.
w
Select only those lines containing matches that form whole words.
x
Select only those matches that exactly match the whole line.
pattern
The pattern (regular expression or text string) for which to search.
Example¶
show ns info | grep off -i