Dell Force10 S4820T FTOS Command Reference Guide - Page 22
Displaying All Output, Filtering Command Output Multiple Times, case-insensitive. For example
View all Dell Force10 S4820T manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 22 highlights
www.dell.com | support.dell.com When you execute a show command, followed by a pipe ( | ) and one of the parameters listed below and a regular expression, the resulting output either excludes or includes those parameters, as defined by the parameter: • display - display additional configuration information • except- display only text that does not match the pattern (or regular expression) • find - search for the first occurrence of a pattern • grep - display text that matches a pattern • no-more - do not paginate the display output • save - copy output to a file for future use Note: FTOS accepts a space before or after the pipe, no space before or after the pipe, or any combination. For example: FTOS#command | grep gigabit |except regular-expression | find regular-expression The grep command option has an ignore-case sub-option that makes the search case-insensitive. For example, the commands: • show run | grep Ethernet would return a search result with instances containing a capitalized "Ethernet," such as interface GigabitEthernet 0/0. • show run | grep ethernet would not return the search result, above, because it only searches for instances containing a non-capitalized "ethernet." Executing the command show run | grep Ethernet ignore-case would return instances containing both "Ethernet" and "ethernet." Displaying All Output To display the output all at once (not one screen at a time), use the no-more after the pipe. This 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: FTOS#show running-config|no-more Filtering Command Output Multiple Times You can filter a single command output multiple times. Place the save option as the last filter. For example: FTOS# command | grep regular-expression | except regular-expression | grep other-regular-expression | find regular-expression | no-more | save 22 | CLI Basics