Cisco ASR 14000 Series Management Command Reference page 735

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 cut
To extract selected characters or fields from standard input or from a file, use the utility cut command
in EXEC mode or administration EXEC mode.
Syntax Description
list character-list
fields field-list
nodelim
delimiter
delimiter-character
file input-file
usage
WORD
OL-17231-01
utility cut {list character-list | fields field-list [nodelim] [delimiter delimiter-character] | WORD}
[file input-file] [usage]
(-c) Cuts out the characters that are located on each line as specified with the
character-list argument.
The character-list argument specifies the character positions or range of the
characters to be cut.
Note
(-f) Cuts out the fields (lines) as indicated with the field-list argument.
The list argument specifies the field numbers or ranges. For example, utility
field 2,9 outputs the second and ninth fields, utility field 1-3 outputs the first
three fields, utility list -6 outputs the first six fields.
Note
(Optional) (-s) Ignores lines with no delimiter. Use this optional keyword
when the fields list keyword and argument is specified,
(Optional) (-d) Specifies an alternative delimiter to indicate the end of each
field. Replace the delimiter-character argument with the character used as
the delimiter.
(Optional) Storage device and directory path of the text file used instead of
the standard input (keyboard input).
The input-file syntax is:
device:[/directory-path]/filename
Include the alias for the device argument, followed by a colon, and,
optionally, the name of a directory. Use the online help system to display the
available storage devices and network protocols.
(Optional) Displays the UNIX options supported by this command.
(Optional) UNIX command-line option string. The maximum number of
characters is 20.
Use a comma (,) to indicate more than one character. For example,
utility list 1,2,5 outputs the first, second, and fifth characters.
Use a dash (-) to indicate a range. For example, utility list 1-64 outputs
the first 64 characters of each line, utility list 5- outputs the fifth
character to the end of the line.
Lines are separated by a delimiter. The default delimiter is tab.
The fields indicated by the list argument are assumed to be separated
in the file by a delimiter character. The default delimiter is tab. Use
the delimiter delimiter option to specify a delimiter character. Lines
without field delimiters are processed unless the nodelim keyword is
specified.
Cisco ASR 14000 Series Router System Management Command Reference
utility cut
SMR-733

Advertisement

Table of Contents
loading

Table of Contents