| 1 |
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.50.1. |
| 2 |
.TH SPLIT "1" "February 2026" "GNU coreutils 9.10" "User Commands" |
| 3 |
.SH NAME |
| 4 |
split \- split a file into pieces |
| 5 |
.SH SYNOPSIS |
| 6 |
.B split |
| 7 |
[\fI\,OPTION\/\fR]... [\fI\,FILE \/\fR[\fI\,PREFIX\/\fR]] |
| 8 |
.SH DESCRIPTION |
| 9 |
.\" Add any additional description here |
| 10 |
.PP |
| 11 |
Output pieces of FILE to PREFIXaa, PREFIXab, ...; |
| 12 |
default size is 1000 lines, and default PREFIX is 'x'. |
| 13 |
.PP |
| 14 |
With no FILE, or when FILE is \-, read standard input. |
| 15 |
.PP |
| 16 |
Mandatory arguments to long options are mandatory for short options too. |
| 17 |
.TP |
| 18 |
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#split-a'\fB\-a, \-\-suffix\-length=\,N\fP\X'tty: link'\/\fR |
| 19 |
generate suffixes of length N (default 2) |
| 20 |
.TP |
| 21 |
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#split--additional-suffix'\fB\-\-additional\-suffix=SUFFIX\fP\X'tty: link' |
| 22 |
append an additional SUFFIX to file names |
| 23 |
.TP |
| 24 |
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#split-b'\fB\-b, \-\-bytes=\,SIZE\fP\X'tty: link'\/\fR |
| 25 |
put SIZE bytes per output file |
| 26 |
.TP |
| 27 |
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#split-C'\fB\-C, \-\-line\-bytes=\,SIZE\fP\X'tty: link'\/\fR |
| 28 |
put at most SIZE bytes of records per output file |
| 29 |
.TP |
| 30 |
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#split-d'\fB\-d\fP\X'tty: link' |
| 31 |
use numeric suffixes starting at 0, not alphabetic |
| 32 |
.TP |
| 33 |
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#split--numeric-suffixes'\fB\-\-numeric\-suffixes[=FROM]\fP\X'tty: link' |
| 34 |
same as \fB\-d\fR, but allow setting the start value |
| 35 |
.TP |
| 36 |
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#split-x'\fB\-x\fP\X'tty: link' |
| 37 |
use hex suffixes starting at 0, not alphabetic |
| 38 |
.TP |
| 39 |
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#split--hex-suffixes'\fB\-\-hex\-suffixes[=FROM]\fP\X'tty: link' |
| 40 |
same as \fB\-x\fR, but allow setting the start value |
| 41 |
.TP |
| 42 |
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#split-e'\fB\-e, \-\-elide\-empty\-files\fP\X'tty: link' |
| 43 |
do not generate empty output files with '\-n' |
| 44 |
.TP |
| 45 |
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#split--filter'\fB\-\-filter=COMMAND\fP\X'tty: link' |
| 46 |
write to shell COMMAND; file name is $FILE |
| 47 |
.TP |
| 48 |
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#split-l'\fB\-l, \-\-lines=\,NUMBER\fP\X'tty: link'\/\fR |
| 49 |
put NUMBER lines/records per output file |
| 50 |
.TP |
| 51 |
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#split-n'\fB\-n, \-\-number=\,CHUNKS\fP\X'tty: link'\/\fR |
| 52 |
generate CHUNKS output files; see explanation below |
| 53 |
.TP |
| 54 |
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#split-t'\fB\-t, \-\-separator=\,SEP\fP\X'tty: link'\/\fR |
| 55 |
use SEP instead of newline as the record separator; |
| 56 |
\&'\e0' (zero) specifies the NUL character |
| 57 |
.TP |
| 58 |
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#split-u'\fB\-u, \-\-unbuffered\fP\X'tty: link' |
| 59 |
immediately copy input to output with '\-n r/...' |
| 60 |
.TP |
| 61 |
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#split--verbose'\fB\-\-verbose\fP\X'tty: link' |
| 62 |
print a diagnostic just before each output file is opened |
| 63 |
.TP |
| 64 |
\X'tty: link https://www.gnu.org/software/coreutils/split#split--help'\fB\-\-help\fP\X'tty: link' |
| 65 |
display this help and exit |
| 66 |
.TP |
| 67 |
\X'tty: link https://www.gnu.org/software/coreutils/split#split--version'\fB\-\-version\fP\X'tty: link' |
| 68 |
output version information and exit |
| 69 |
.PP |
| 70 |
The SIZE argument is an integer and optional unit (example: 10K is 10*1024). |
| 71 |
Units are K,M,G,T,P,E,Z,Y,R,Q (powers of 1024) or KB,MB,... (powers of 1000). |
| 72 |
Binary prefixes can be used, too: KiB=K, MiB=M, and so on. |
| 73 |
.SS "CHUNKS may be:" |
| 74 |
.TP |
| 75 |
N |
| 76 |
split into N files based on size of input |
| 77 |
.TP |
| 78 |
K/N |
| 79 |
output Kth of N to standard output |
| 80 |
.TP |
| 81 |
l/N |
| 82 |
split into N files without splitting lines/records |
| 83 |
.TP |
| 84 |
l/K/N |
| 85 |
output Kth of N to standard output without splitting lines/records |
| 86 |
.TP |
| 87 |
r/N |
| 88 |
like 'l' but use round robin distribution |
| 89 |
.TP |
| 90 |
r/K/N |
| 91 |
likewise but only output Kth of N to standard output |
| 92 |
.PP |
| 93 |
\fB\-n\fR (except \fB\-nr\fR) will buffer to $TMPDIR, defaulting to \fI\,/tmp\/\fP, |
| 94 |
if the input size cannot easily be determined. |
| 95 |
.SH AUTHOR |
| 96 |
Written by Torbjorn Granlund and Richard M. Stallman. |
| 97 |
.SH "REPORTING BUGS" |
| 98 |
Report bugs to: bug\[email protected] |
| 99 |
.br |
| 100 |
GNU coreutils home page: <https://www.gnu.org/software/coreutils/> |
| 101 |
.br |
| 102 |
General help using GNU software: <https://www.gnu.org/gethelp/> |
| 103 |
.br |
| 104 |
Report any translation bugs to <https://translationproject.org/team/> |
| 105 |
.SH "SEE ALSO" |
| 106 |
Full documentation <https://www.gnu.org/software/coreutils/split> |
| 107 |
.br |
| 108 |
or available locally via: info \(aq(coreutils) split invocation\(aq |
| 109 |
.PP |
| 110 |
.br |
| 111 |
Packaged by Debian (9.10\-1) |
| 112 |
.br |
| 113 |
Copyright \(co 2026 Free Software Foundation, Inc. |
| 114 |
.br |
| 115 |
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>. |
| 116 |
.br |
| 117 |
This is free software: you are free to change and redistribute it. |
| 118 |
.br |
| 119 |
There is NO WARRANTY, to the extent permitted by law. |