Cisco ASR 14000 Series Management Command Reference page 738

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

Advertisement

utility cut
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
In the following example, the list character-list keyword and argument are used to specify the character
positions to be extracted:
RP/0/RP0/CPU0:router# utility cut list 1-30 file disk0:/usr/passwd
root:x:0:1:Super-User:/:/sbin/
daemon:x:1:1::/:
bin:x:2:2::/usr/bin:
sys:x:3:3::/:
adm:x:4:4:Admin:/var/adm:
lp:x:71:8:Line Printer Admin:/
uucp:x:5:5:uucp Admin:/usr/lib
nuucp:x:9:9:uucp Admin:/var/sp
listen:x:37:4:Network Admin:/u
nobody:x:60001:60001:Nobody:/:
noaccess:x:60002:60002:No Acce
nobody4:x:65534:65534:SunOS 4.
==========================================================================
In the following example, the UNIX equivalent options are used directly. First, the utility cut command
is entered with the usage keyword to display the possible options. Next, the utility cut command is
entered with the options to extract the desired data.
RP/0/RP0/CPU0:router# utility cut usage
cut -c list [file], cut -f list [-d delim] [-s] [file]
RP/0/RP0/CPU0:router# utility cut -f 1,4 -d : disk0:/usr/passwd
root:1
daemon:1
bin:2
sys:3
adm:4
lp:8
Related Commands
Command
utility head
utility sort
utility tail
Cisco ASR 14000 Series Router System Management Command Reference
SMR-736
Description
Copies bytes or lines at the beginning of the output displayed from standard
input or a file.
Sorts, merges, or sequence-checks the output displayed from standard input
or a file.
Copies the end portion of the output displayed from standard input or a file.
Utility Commands on Cisco IOS XR Software
OL-17231-01

Advertisement

Table of Contents
loading

Table of Contents