October 2001
Intermediate to advanced
1040 pages
22h 50m
English
cut –clist [ filename ... ]cut –flist [ –dc ] [ –s ] [ filename ... ]
The cut command cuts out columns or characters from a line of a file; if no files are given, uses standard input. The –d option specifies the field delimiter. The default delimiter is a tab.
1 cut -d: -f1,3 /etc/passwd 2 cut -d: -f1-5 /etc/passwd 3 cut -c1-3,8-12 /etc/passwd 4 date | cut -c1-3 |
EXPLANATION
|
Read now
Unlock full access