Save and Filter Show Command Output
You can save the output of
show
commands by redirecting the output to a text file. You can filter the output
of
show
commands by piping the output to filtering commands.
Saving and filtering output are available with all
show
commands but are most useful when dealing with
commands that produce a lot of text.
Filter Show Command Output
To filter the output of a
show
command, use the following subcommands. Note that in the following syntax
description, the initial vertical bar
|
after the
show
command is the pipe character and is part of the command,
not part of the syntax description. The filtering options are entered after the command’s initial
|
character.
show command
|
{
begin expression
|
count
|
cut expression
|
egrep expression
|
end expression
|
exclude
expression
|
grep expression
|
head
|
include expression
|
last
|
less
|
no-more
|
sort expression
|
tr
expression
|
uniq expression
|
wc
}
Filtering Options
These are the filtering subcommands:
•
begin
—Finds the first line that includes the specified pattern, and display that line and all subsequent
lines.
•
count
—Counts the number of lines.
•
cut
—Removes (“cut”) portions of each line.
•
egrep
—Displays only those lines that match the extended-type pattern.
•
end
—Ends with the line that matches the pattern.
•
exclude
—Excludes all lines that match the pattern and show all other lines.
•
grep
—Displays only those lines that match the pattern.
•
head
—Displays the first lines.
•
include
—Displays only those lines that match the pattern.
•
last
—Displays the last lines.
•
less
—Filters for paging.
•
no-more
—Turns off pagination for command output.
•
sort
—Sorts the lines (stream sorter).
•
tr
—Translates, squeezes, and/or deletes characters.
•
uniq
—Discards all but one of successive identical lines.
•
wc
—Displays a count of lines, words, and characters.
expression
Cisco Firepower 4100/9300 FXOS Command Reference
14
Filter and Save Show Output
Save and Filter Show Command Output
Содержание Firepower 4100 Series
Страница 4: ...Cisco Firepower 4100 9300 FXOS Command Reference 2 About the FXOS CLI Command Reference Guide ...
Страница 25: ...P A R T I A R Commands A C Commands on page 25 D R Commands on page 81 ...
Страница 26: ......
Страница 122: ...Cisco Firepower 4100 9300 FXOS Command Reference 120 A R Commands return ...
Страница 123: ...P A R T II S Commands scope Commands on page 123 set Commands on page 157 sh Commands on page 235 ...
Страница 124: ......
Страница 236: ...Cisco Firepower 4100 9300 FXOS Command Reference 234 S Commands set vlan ...
Страница 379: ...P A R T III T W Commands T W Commands on page 379 ...
Страница 380: ......
Страница 390: ...Cisco Firepower 4100 9300 FXOS Command Reference 388 T W Commands where ...
Страница 391: ...P A R T IV connect shell Commands connect shell Commands on page 391 ...
Страница 392: ......
Страница 420: ...Cisco Firepower 4100 9300 FXOS Command Reference 418 connect shell Commands connect module Command List ...