Command Line Reference Guide
CLI Basics | 21
Using the Keyword No
To disable, delete, or return to default values, use the no form of the commands. For most commands,
if you type the keyword no in front of the command, you will disable that command or delete it from
the running configuration. In this document, the no form of the command is discussed in the Command
Syntax portion of the command description.
Filtering show Commands
You can filter the display output of a show command to find specific information, to display certain
information only, or to begin the command output at the first instance of a regular expression or phrase.
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
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
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










