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

NAME

6       split - split a file into pieces
7

SYNOPSIS

9       split [OPTION]... [INPUT [PREFIX]]
10

DESCRIPTION

12       Output  fixed-size  pieces of INPUT to PREFIXaa, PREFIXab, ...; default
13       size is 1000 lines, and default PREFIX is 'x'.  With no INPUT, or  when
14       INPUT is -, read standard input.
15
16       Mandatory  arguments  to  long  options are mandatory for short options
17       too.
18
19       -a, --suffix-length=N
20              generate suffixes of length N (default 2)
21
22       --additional-suffix=SUFFIX
23              append an additional SUFFIX to file names
24
25       -b, --bytes=SIZE
26              put SIZE bytes per output file
27
28       -C, --line-bytes=SIZE
29              put at most SIZE bytes of lines per output file
30
31       -d, --numeric-suffixes[=FROM]
32              use numeric suffixes instead of  alphabetic;  FROM  changes  the
33              start value (default 0)
34
35       -e, --elide-empty-files
36              do not generate empty output files with '-n'
37
38       --filter=COMMAND
39              write to shell COMMAND; file name is $FILE
40
41       -l, --lines=NUMBER
42              put NUMBER lines per output file
43
44       -n, --number=CHUNKS
45              generate CHUNKS output files; see explanation below
46
47       -u, --unbuffered
48              immediately copy input to output with '-n r/...'
49
50       --verbose
51              print a diagnostic just before each output file is opened
52
53       --help display this help and exit
54
55       --version
56              output version information and exit
57
58       SIZE  is  an  integer and optional unit (example: 10M is 10*1024*1024).
59       Units are K, M, G, T, P, E, Z, Y (powers of 1024) or KB, MB, ...  (pow‐
60       ers of 1000).
61
62       CHUNKS  may  be:  N       split into N files based on size of input K/N
63       output Kth of N to stdout l/N     split into N files without  splitting
64       lines  l/K/N    output  Kth  of N to stdout without splitting lines r/N
65       like 'l' but use round robin distribution  r/K/N    likewise  but  only
66       output Kth of N to stdout
67
68       GNU  coreutils  online  help:  <http://www.gnu.org/software/coreutils/>
69       Report split translation bugs to <http://translationproject.org/team/>
70

AUTHOR

72       Written by Torbjorn Granlund and Richard M. Stallman.
73
75       Copyright © 2013 Free Software Foundation, Inc.   License  GPLv3+:  GNU
76       GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
77       This  is  free  software:  you  are free to change and redistribute it.
78       There is NO WARRANTY, to the extent permitted by law.
79

SEE ALSO

81       The full documentation for split is maintained as a Texinfo manual.  If
82       the  info  and  split programs are properly installed at your site, the
83       command
84
85              info coreutils 'split invocation'
86
87       should give you access to the complete manual.
88
89
90
91GNU coreutils 8.22               October 2018                         SPLIT(1)
Impressum