1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.43.3.
2 .TH SPLIT "1" "May 2014" "GNU coreutils 8.22" "User Commands"
4 split \- split a file into pieces
7 [\fIOPTION\fR]... [\fIINPUT \fR[\fIPREFIX\fR]]
9 .\" Add any additional description here
11 Output fixed\-size pieces of INPUT to PREFIXaa, PREFIXab, ...; default
12 size is 1000 lines, and default PREFIX is 'x'. With no INPUT, or when INPUT
13 is \-, read standard input.
15 Mandatory arguments to long options are mandatory for short options too.
17 \fB\-a\fR, \fB\-\-suffix\-length\fR=\fIN\fR
18 generate suffixes of length N (default 2)
20 \fB\-\-additional\-suffix\fR=\fISUFFIX\fR
21 append an additional SUFFIX to file names
23 \fB\-b\fR, \fB\-\-bytes\fR=\fISIZE\fR
24 put SIZE bytes per output file
26 \fB\-C\fR, \fB\-\-line\-bytes\fR=\fISIZE\fR
27 put at most SIZE bytes of lines per output file
29 \fB\-d\fR, \fB\-\-numeric\-suffixes\fR[=\fIFROM\fR]
30 use numeric suffixes instead of alphabetic;
31 FROM changes the start value (default 0)
33 \fB\-e\fR, \fB\-\-elide\-empty\-files\fR
34 do not generate empty output files with '\-n'
36 \fB\-\-filter\fR=\fICOMMAND\fR
37 write to shell COMMAND; file name is $FILE
39 \fB\-l\fR, \fB\-\-lines\fR=\fINUMBER\fR
40 put NUMBER lines per output file
42 \fB\-n\fR, \fB\-\-number\fR=\fICHUNKS\fR
43 generate CHUNKS output files; see explanation below
45 \fB\-u\fR, \fB\-\-unbuffered\fR
46 immediately copy input to output with '\-n r/...'
49 print a diagnostic just before each
53 display this help and exit
56 output version information and exit
58 SIZE is an integer and optional unit (example: 10M is 10*1024*1024). Units
59 are K, M, G, T, P, E, Z, Y (powers of 1024) or KB, MB, ... (powers of 1000).
62 N split into N files based on size of input
63 K/N output Kth of N to stdout
64 l/N split into N files without splitting lines
65 l/K/N output Kth of N to stdout without splitting lines
66 r/N like 'l' but use round robin distribution
67 r/K/N likewise but only output Kth of N to stdout
69 GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
70 Report split translation bugs to <http://translationproject.org/team/>
72 Written by Torbjorn Granlund and Richard M. Stallman.
74 Copyright \(co 2013 Free Software Foundation, Inc.
75 License GPLv3+: GNU 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.
80 The full documentation for
82 is maintained as a Texinfo manual. If the
86 programs are properly installed at your site, the command
88 .B info coreutils \(aqsplit invocation\(aq
90 should give you access to the complete manual.