Dell Z9500 Reference Manual page 52

Hide thumbs Also See for Z9500:
Table of Contents

Advertisement

NOTE: You can enter a space before or after the pipe, no space before or after the pipe, or any
combination. For example: Dell#command | grep fortyGigE |except regular-
expression | find regular-expression
displays additional configuration information
display
displays only the text that does not match the pattern (or regular expression)
except
searches for the first occurrence of a pattern
find
displays text that matches a pattern.
grep
The grep command option has an ignore-case suboption that makes the search
case-insensitive. For example, the commands:
show run |
grep
Ethernet
show run |
grep
ethernet
show run |
grep
Ethernet
ignore-case
does not paginate the display output
no-more
copies the output to a file for future use
save
Displaying All Output
To display the output all at once (not one screen at a time), use the no-more option after the pipe. This
operation is similar to the terminal length screen-length command except that the no-more
option affects the output of just the specified command. For example: Dell#show running-config|
no-more.
Filtering the Command Output Multiple Times
You can filter a single command output multiple times. To filter a command output multiple times, place
the save option as the last filter. For example: Dell# command | grep regular-expression |
except regular-expression | grep other-regular-expression | find regular-
expression | no-more | save.
52
returns a search result with instances containing a capitalized
"Ethernet," such as interface fortyGigE 0/0
does not return the previous search result because it only
searches for instances containing a noncapitalized "ethernet"
returns instances containing both "Ethernet" and "ethernet"
CLI Basics

Advertisement

Table of Contents
loading

Table of Contents