Managing Command Output; Scrolling The Screen Display; Filtering Command Output - Cisco SCE 8000 10GBE Software Configuration Manual

Table of Contents

Advertisement

Managing Command Output

Managing Command Output
Some commands, such as many show commands, may have many lines of output. There are several ways
of managing the command output:
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:

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:
The syntax of filtered commands is as follows:
Cisco SCE 8000 10GBE Software Configuration Guide
2-14
Scrolling the Screen Display, page 2-14
Filtering Command Output, page 2-14
Redirecting Command Output to a File, page 2-15
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.
<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
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.
command | include expression
command | exclude expression
command | begin expression
Chapter 2
Command-Line Interface
OL-30621-02

Advertisement

Table of Contents
loading

Table of Contents