Sed Utility; Sort Utility - Cisco MDS 9000 Series Configuration Manual

Hide thumbs Also See for MDS 9000 Series:
Table of Contents

Advertisement

sed Utility

sed Utility
You can use the Stream Editor (sed) utility to filter and manipulate the show command output as follows:
sed command
The command argument contains sed utility commands.

sort Utility

You can use the sort utility to filter show command output.
The sort utility syntax is as follows:
sort [-M] [-b] [-d] [-f] [-g] [-i] [-k field-number[.char-position][ordering]] [-n] [-r] [-t delimiter] [-u]
This table describes the sort utility parameters.
Table 12: sort Utility Parameters
Parameter
-M
-b
-d
-f
-g
-i
-k field-number[.char-position][ordering]
-n
-r
-t delimiter
-u
Cisco MDS 9000 Family NX-OS Fundamentals Configuration Guide
60
Understanding the Command-Line Interface
Description
Sorts by month.
Ignores leading blanks (space characters). The default
sort includes the leading blanks.
Sorts by comparing only blanks and alphanumeric
characters. The default sort includes all characters.
Folds lowercase characters into uppercase characters.
Sorts by comparing a general numeric value.
Sorts only using printable characters. The default sort
includes nonprintable characters.
Sorts according to a key value. There is no default key
value.
Sorts according to a numeric string value.
Reverses order of the sort results. The default sort
output is in ascending order.
Sorts using a specified delimiter. The default delimiter
is the space character.
Removes duplicate lines from the sort results. The
sort output displays the duplicate lines.
OL-29291-02

Advertisement

Table of Contents
loading

Table of Contents