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 Commands on Cisco IOS XR Software
utility cut
SMR-734
Cisco ASR 14000 Series Router System Management Command Reference
OL-17231-01
Defaults
If no file is specified, the keyboard input (standard input) is used.
The delimiter
is
tab
.
Command Modes
EXEC
Administration EXEC
Command History
Usage Guidelines
To use this command, you must be in a user group associated with a task group that includes the proper
task IDs.
The
utility cut
command cuts out columns, fields, or characters displayed from standard input or from
a file.
Use the
fields
field-list
keyword and argument if the fields vary in length from line to line. (The lines
must be separated by a delimiter character.) By default, the field delimiter character is the Tab key. Use
the
delimiter
delimiter-character
keyword and argument to specify a different delimiter.
Use the
list
character-list
keyword and argument only if the fields are of a fixed length. Replace the
character-list
argument with the character positions to be extracted.
For the
character-list
argument, use a comma (,) to indicate more than one character, or use a dash (-) to
indicate a range. For example,
utility list 1,2,5
outputs the first, second, and fifth characters,
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.
You can also use the cut utility as a filter. If no files are specified, the keyboard input (standard input) is
used.
Note
Keywords are entered using the displayed syntax, or with UNIX-equivalent syntax. The
UNIX-equivalent syntax is displayed in parentheses () in the syntax description. For example, the
keyword
fields
can also be entered using the UNIX-equivalent (
-f
). To display the UNIX-equivalent
syntax online, enter the keyword
usage
.
Task ID
Examples
In the following example, the
utility cut
command is entered with the
list
character-list
keyword and
argument to display the first 10 characters in each line. The output is from the results of the command
show version
, which is entered with the pipe (
|
) character:
RP/0/RP0/CPU0:router#
show version | utility cut list 1-10
Cisco IOS
Copyright
Release
Modification
Release 3.7.1
This command was introduced on the Cisco ASR 14000 Series Router.
Task ID
Operations
universal
execute