2-15
Cisco SCE 8000 10GBE Software Configuration Guide
OL-30621-02
Chapter 2 Command-Line Interface
Managing Command Output
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:
•
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.
The syntax of redirection commands is as follows:
•
command
| redirect
filename
•
command
| append
filename
This example illustrates how to do the following:
•
Filter the
more
command to display only the gold package subscribers from a csv subscriber file.
•
Redirect that output to a file named
current_gold_subscribers
. The output should not overwrite
existing entries in the file, but should be appended to the end of the file.
sce#
more subscribers_10.10.2008 include gold | append current_gold_subscribers