-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcut.1
More file actions
51 lines (51 loc) · 753 Bytes
/
cut.1
File metadata and controls
51 lines (51 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
.TH CUT 1
.SH NAME
cut \- select columns of file
.SH SYNOPSIS
.B cut -f
.I ranges
[
.B -d
.I delimiter
]
[
.I file ...
]
.br
.B cut -c
.I ranges
[
.I file ...
]
.br
.B cut -b
.I ranges
[
.I file ...
]
.br
.SH OPERATION
Read from given files, or stdin if no files given, and for each line select
.TP
.B columns,
with -f flag
.TP
.B characters,
with -c flag
.TP
.B bytes,
with -b flag
.LP
within given comma- or space-delimited ranges.
.LP
.br
Each range is either a single decimal number, or of this form:
.br
.I x
-
.I y
.br
where x and y are decimal numbers, or empty.
Empty x means first, and empty y means last column/character/byte on the line.
.LP
If -d option given, then the first character of its argument is the delimiter; otherwise it is tab.