Scrolling The Screen Display; Filtering Command Output; Redirecting Command Output To A File - Cisco SCE2020-4XGBE-SM Configuration Manual

Software configuration guide
Table of Contents

Advertisement

Chapter 2
Command Line Interface

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:
Following is an example of how to filter the show version command to display only the last part of the
output, beginning with the version information.
sce# show version | begin revision

Redirecting Command Output to a File

You can redirect the output of commands, such as show, more, and dir, to a file. When writing the output
of these commands to a file, you can specify either of the following options:
The syntax of redirection commands is as follows:
OL-7827-12
<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>
redirect — The new output of the command will overwrite the existing contents of the file.
append — The new output of the command will be appended to the existing contents of the file.
<command>| redirect <file-name>
<command>| append <file-name>
Cisco SCE 2000 and SCE 1000 Software Configuration Guide
Managing Command Output
2-15

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sce 2000Sce 1000

Table of Contents