2-14
Cisco SCE 8000 10GBE Software Configuration Guide
OL-30621-02
Chapter 2 Command-Line Interface
Managing Command Output
Managing Command Output
•
Scrolling the Screen Display, page 2-14
•
Filtering Command Output, page 2-14
•
Redirecting Command Output to a File, page 2-15
Some commands, such as many show commands, may have many lines of output. There are several ways
of managing the command output:
•
Scrolling options—When the command output is too large to be displayed all at once, you can
control whether the display scrolls line by line or refreshes the entire screen.
•
Filtering options—You can filter the output so that output lines are displayed only if they include or
exclude a specified expression.
•
Redirecting to a file—You can send the output to a specified file.
Note that by default, the
show
commands act the same as the
more
commands; that is, the output is
displayed interactively a single screen at a time. Use the
no more
command to disable this feature so
that
show
commands display the complete output all at one time.
Scrolling the Screen Display
The output of some
show
and
dir
commands is quite lengthy and cannot all be displayed on the screen
at one time. Commands with many lines of output are displayed in chunks of 24 lines. You can choose
to scroll the display line by line or refresh the entire screen. At the prompt after any line, you can type
one of the following keys for the desired action:
•
<Enter>
—Show one more line
•
<Space>
—Show 24 more lines (a new chunk)
•
<g>
—Stop prompting for more
•
<?>
—Display a help string showing possible options
•
Any other key—Quit showing the file
Filtering Command Output
You can filter the output of certain commands, such as
show
,
more
, and
dir
, so that output lines are
displayed only if they include or exclude a specified expression. The filtering options are as follows:
•
include—Shows all lines that include the specified text.
•
exclude—Does not show any lines that include the specified text.
•
begin—Finds the first line that includes the specified text, and shows all lines starting from that line.
All previous lines are excluded.
The syntax of filtered commands is as follows:
•
command
| include
expression
•
command
| exclude
expression
•
command
| begin
expression