|
m-n
|
Selects all fields from
m to
n. |
m-
|
Selects all fields from
m to the last field of each input line.
|
-n
|
Selects all fields from the first field
to
n. |
The
cut command accepts the following options:
|
-c list
|
Each character of an input line forms a column.
All selected characters are printed without intervening separators;
all newline characters of the input file are passed through.
|
-d char
|
Sets the field delimiter character for the
-f option to
char. |
-f list
|
Columns are sequences of zero or more characters
separated by a field delimiter character,
by default a tabulator (\t).
The selected fields are printed,
separated by the field delimiter character.
Lines that do not contain the field delimiter character
are passed through unchanged.
|
-s
|
With the
-f option,
lines that do not contain the field delimiter character
are not passed through.
|
The following options were introduced by POSIX.2:
|
-b list
|
Each single byte of an input line forms a column.
All selected bytes are printed without intervening separators;
all newline characters of the input file are passed through.
|
-n
|
Changes the behavior of the
-b option such that ranges start and end at character boundaries.
|
|