-b list
Cut based on a list of bytes. Each selected byte shall be output unless the -n option is also
specified. It shall not be an error to select bytes not present in the input line.
|
-c list
Cut based on a list of characters. Each selected character shall be output. It shall not be an
error to select characters not present in the input line.
|
-d delim
Set the field delimiter to the character delim. The default is the <tab>.
|
-f list
Cut based on a list of fields, assumed to be separated in the file by a delimiter character (see
-d). Each selected field shall be output. Output fields shall be separated by a single occurrence
of the field delimiter character. Lines with no field delimiters shall be passed through intact,
unless -s is specified. It shall not be an error to select fields not present in the input line.
|
-n Do not split characters. When specified with the -b option, each element in list of the form low-
high (hyphen-separated numbers) shall be modified as follows:
* If the byte selected by low is not the first byte of a character, low shall be decremented to
select the first byte of the character originally selected by low. If the byte selected by high
is not the last byte of a character, high shall be decremented to select the last byte of the
character prior to the character originally selected by high, or zero if there is no prior
character. If the resulting range element has high equal to zero or low greater than high, the
list element shall be dropped from list for that input line without causing an error.
Each element in list of the form low- shall be treated as above with high set to the number of bytes in
the current line, not including the terminating <newline>. Each element in list of the form - high shall
be treated as above with low set to 1. Each element in list of the form num (a single number) shall be
treated as above with low set to num and high set to num.
|
-s Suppress lines with no delimiter characters, when used with the -f option. Unless specified, lines
with no delimiters shall be passed through untouched.
|