Cisco ASR 14000 Series Management Command Reference page 763

Router system
Hide thumbs Also See for ASR 14000 Series:
Table of Contents

Advertisement

Utility Commands on Cisco IOS XR Software
C i s c o C o n f i d e n t i a l - B e t a R e v i e w R 3 . 7. 1
utility sort
To sort, merge, or sequence-check the lines in one or more files, or from the standard input, use the
utility sort command in EXEC mode or administration EXEC mode.
utility sort [[dict] [ignoreblank] [key key-definition] [lowercase] [merge] [numeric] [printable]
[reverse] [unique] [merge]] [fieldSep character] [file filename] [outfile filename] [usage] [WORD]
Syntax Description
dict
ignoreblank
key key-definition
lowercase
merge
numeric
printable
reverse
unique
fieldSep character
file filename
outfile filename
OL-17231-01
(Optional) (-d) Sorts in dictionary order. Uses only alphanumeric and blank
characters in the sort operation.
(Optional) (-b) Ignores leading blank characters in field comparisons.
(Optional) (-k) Defines a key to be the sort key. A sort key field is defined
using the following syntax:
utility sort key field_start [type_string] [,field_end] [type_string]
field_start and field_end: Specifies the beginning and end of the key
field.
type_string: Specifies attributes specific to the key.
The field_start and field_end are each specified by a pair of digits of the form
m.n, where the m refers to the field starting after the mth field separator in a
line. For field_start, the .n refers to the nth character of the specified field,
and is taken as zero if not specified. For field_end, the .n refers to the nth
character after the last character of the specified field, and is taken as zero if
not specified.
The type_string may be formed from the characters bdfinr, which apply their
defined attributes to the determination of the key.
When ordering options appear independent of key field
Note
specifications, the requested field ordering rules are applied globally
to all sort keys. When attached to a specific key, the specified
ordering options override all global ordering options for that key.
(Optional) (-f) Folds uppercase letters into lowercase (ignores case and treats
upper case characters the same as lowercase characters).
(Optional) (-m) Merges sorted files. Assumes that the files are already sorted
and so does not sort the files.
(Optional) (-n) Interprets the field as numeric and sorts in numeric order.
Includes the sign and optional "thousands" separator. This keyword also
ignores leading blank characters in field comparisons (implies the
ignoreblank keyword).
(Optional) (-i) Ignores all nonprintable characters.
(Optional) (-r) Reverses the sort order. The sort is ascending by default.
(Optional) (-u) Suppresses all but one line in each set of lines having equal
keys.
(Optional) (-t) Specifies a character as the field separator.
(Optional) Specifies a file to be sorted.
(Optional) (-o) Writes the results to a file. The filename is the destination
disk, directory, and filename. The filename can be the same as the source file.
Cisco ASR 14000 Series Router System Management Command Reference
utility sort
SMR-761

Advertisement

Table of Contents
loading

Table of Contents