split(1)
β¨ NAME β¨
split β bestie, it makes output files that hold consecutive or interleaved sections of input π
πΈ SYNOPSIS πΈ
split [-b|--bytes] [-C|--line-bytes] [-l|--lines] [-n|--number]
[--additional-suffix] [--filter] [-e|--elide-empty-files] [-d ]
[--numeric-suffixes] [-x ] [--hex-suffixes] [-a|--suffix-length]
[--verbose] [-t|--separator] [-h|--help] [-V|--version] [input] [prefix]
π DESCRIPTION π
Create output files containing consecutive or interleaved sections of input. That's the whole job, and she does it flawlessly. π
π OPTIONS π
okay so here's the full menu, no skips, no skimming, every single one, fr fr:
-b,--bytes <SIZE>β put SIZE bytes per output file π¦-C,--line-bytes <SIZE>β put at most SIZE bytes of lines per output file (so like, it won't split a line in half, respectful queen π«Ά)-l,--lines <NUMBER>β put NUMBER lines/records per output file [default:1000]-n,--number <CHUNKS>β generate CHUNKS output files; the explanation is down below, keep reading bestie π--additional-suffix <SUFFIX>β additional SUFFIX to append to output file names [default: (empty)]--filter <COMMAND>β write to shell COMMAND; file name is$FILE(Currently not implemented for Windows β οΈ)-e,--elide-empty-filesβ do not generate empty output files with-n(no ghost files, we don't do that here π)-dβ use numeric suffixes starting at0, not alphabetic π’--numeric-suffixes[=<FROM>]β same as-d, but allow setting the start value-xβ use hex suffixes starting at0, not alphabetic π--hex-suffixes[=<FROM>]β same as-x, but allow setting the start value-a,--suffix-length <N>β generate suffixes of length N (default2)--verboseβ print a diagnostic just before each output file is opened π£οΈ-t,--separator <SEP>β use SEP instead of newline as the record separator;'\0'(zero) specifies the NUL character-h,--helpβ Print help π-V,--versionβ Print version[input][default:-][prefix][default:x]
π¦ EXTRA π¦
Output fixed-size pieces of INPUT to PREFIXaa, PREFIXab, ...; default size is 1000, and default PREFIX is x. With no INPUT, or when INPUT is -, read standard input. (Yes, that dash is main character energy. She reads stdin. Periodt. π)
The SIZE argument is an integer and optional unit (example: 10K is 10*1024). Units are K,M,G,T,P,E,Z,Y,R,Q (powers of 1024) or KB,MB,... (powers of 1000). Binary prefixes can be used, too: KiB=K, MiB=M, and so on. π§
CHUNKS may be:**
Nβ split intoNfiles based on size of inputK/Nβ outputKth ofNto stdoutl/Nβ split intoNfiles without splitting lines/recordsl/K/Nβ outputKth ofNto stdout without splitting lines/recordsr/Nβ likelbut use round robin distribution πr/K/Nβ likewise but only outputKth ofNto stdout
β VERSION β
v(uutils coreutils) 0.7.0
okay that's the whole page bestie, you ate it, go split something π
this iconic lil manual is from split (uutils coreutils) 0.7.0 β the General Commands Manual crew, mwah, no cap πΈπ«Άβ¨
π¦ where this page comes from
- epel 10: rust-coreutils-devel 0.7.0-10.el10_3 Β· MIT
- epel 10: uutils-coreutils 0.7.0-10.el10_3 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
- fedora 43: rust-coreutils-devel 0.7.0-12.fc43 Β· MIT
- fedora 43: uutils-coreutils 0.7.0-12.fc43 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
- fedora 44: rust-coreutils-devel 0.7.0-4.fc44 Β· MIT
- fedora 44: uutils-coreutils 0.7.0-4.fc44 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms