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

AUTHOR

63       Written by David Ihnat, David MacKenzie, and Jim Meyering.
64

REPORTING BUGS

66       Report bugs to <bug-coreutils@gnu.org>.
67
69       Copyright © 2007 Free Software Foundation, Inc.
70       This  is  free  software.   You may redistribute copies of it under the
71       terms      of      the      GNU      General       Public       License
72       <http://www.gnu.org/licenses/gpl.html>.   There  is NO WARRANTY, to the
73       extent permitted by law.
74

SEE ALSO

76       The full documentation for cut is maintained as a Texinfo  manual.   If
77       the info and cut programs are properly installed at your site, the com‐
78       mand
79
80              info cut
81
82       should give you access to the complete manual.
83
84
85
86GNU coreutils 6.9                 March 2008                            CUT(1)
Impressum