Skip to content
Was this article helpful?

grep

The following operations can be performed on "grep":

grep

Searches files or output for lines containing a match to the specified ###Synopsis

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

Arguments

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.

Example

show ns info | grep off -i

Was this article helpful?