Skip to content
Was this article helpful?


The following operations can be performed on "grep":


Searches files or output for lines containing a match to the specified . By default, grep prints the matching lines.


grep [-c] [-E] [-i] [-v] [-w] [-x]


c Suppress normal output. Instead print a count of matching lines. With the -v option, count non-matching lines.

E Interpret 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.


show ns info | grep off -i

Was this article helpful?