Less Utility; Sed Utility; Sort Utility - Cisco Nexus 5500 Series Configuration Manual

Nx-os fundamentals configuration guide, release 7.x
Hide thumbs Also See for Nexus 5500 Series:
Table of Contents

Advertisement

Understanding the Command-Line Interface
Parameter
word-exp
expression

less Utility

You can use the less utility to display the contents of the show command output one screen at a time. You
can enter less commands at the : prompt. To display all less commands you can use, enter h at the : prompt.

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 13: sort Utility Parameters
Parameter
-M
-b
-d
-f
-g
-i
OL-30890-01
Description
Displays only lines that match a complete word.
Specifies a regular expression for searching the
output.
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.
Cisco Nexus 5500 Series NX-OS Fundamentals Configuration Guide, Release 7.x
less Utility
67

Advertisement

Table of Contents
loading

Table of Contents