1CUT(1)                           User Commands                          CUT(1)
2
3
4

NAME

6       cut - remove sections from each line of files
7

SYNOPSIS

9       cut OPTION... [FILE]...
10

DESCRIPTION

12       Print selected parts of lines from each FILE to standard output.
13
14       With no FILE, or when FILE is -, read standard input.
15
16       Mandatory  arguments  to  long  options are mandatory for short options
17       too.
18
19       -b, --bytes=LIST
20              select only these bytes
21
22       -c, --characters=LIST
23              select only these characters
24
25       -d, --delimiter=DELIM
26              use DELIM instead of TAB for field delimiter
27
28       -f, --fields=LIST
29              select only these fields;  also print any line that contains  no
30              delimiter character, unless the -s option is specified
31
32       -n     with -b: don't split multibyte characters
33
34       --complement
35              complement the set of selected bytes, characters or fields
36
37       -s, --only-delimited
38              do not print lines not containing delimiters
39
40       --output-delimiter=STRING
41              use STRING as the output delimiter the default is to use the in‐
42              put delimiter
43
44       -z, --zero-terminated
45              line delimiter is NUL, not newline
46
47       --help display this help and exit
48
49       --version
50              output version information and exit
51
52       Use one, and only one of -b, -c or -f.  Each LIST is  made  up  of  one
53       range,  or  many ranges separated by commas.  Selected input is written
54       in the same order that it is read, and is written exactly  once.   Each
55       range is one of:
56
57       N      N'th byte, character or field, counted from 1
58
59       N-     from N'th byte, character or field, to end of line
60
61       N-M    from N'th to M'th (included) byte, character or field
62
63       -M     from first to M'th (included) byte, character or field
64

AUTHOR

66       Written by David M. Ihnat, David MacKenzie, and Jim Meyering.
67

REPORTING BUGS

69       GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
70       Report any translation bugs to <https://translationproject.org/team/>
71
73       Copyright  ©  2020  Free Software Foundation, Inc.  License GPLv3+: GNU
74       GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
75       This is free software: you are free  to  change  and  redistribute  it.
76       There is NO WARRANTY, to the extent permitted by law.
77

SEE ALSO

79       Full documentation <https://www.gnu.org/software/coreutils/cut>
80       or available locally via: info '(coreutils) cut invocation'
81
82
83
84GNU coreutils 8.32                 July 2021                            CUT(1)
Impressum