SPLIT(1)
π NAME π
Okay bestie, welcome to the SPLIT(1) page from the General Commands Manual π This is split β it creates output files containing consecutive or interleaved sections of input. Periodt.
πΈ SYNOPSIS πΈ
split [OPTION]... [INPUT [PREFIX]]
π¦ DESCRIPTION π¦
Create output files containing consecutive or interleaved sections of input. Thatβs the whole vibe: itβs giving βslice the input into pieces,β and the details live below π₯.
β¨ OPTIONS β¨
-b,--bytes <SIZE>β putSIZEbytes per output file.-C,--line-bytes <SIZE>β put at mostSIZEbytes of lines per output file.-l,--lines <NUMBER>β putNUMBERlines/records per output file ([default: 1000]).-n,--number <CHUNKS>β generateCHUNKSoutput files; see the explanation below.--additional-suffix <SUFFIX>β additionalSUFFIXto append to output file names ([default: ], the empty suffix).--filter <COMMAND>β write to shellCOMMAND; file name is$FILE(Currently not implemented for Windows).-e,--elide-empty-filesβ do not generate empty output files with-n.-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 lengthN(default2).--verboseβ print a diagnostic just before each output file is opened.-t,--separator <SEP>β useSEPinstead of newline as the record separator;'\0'(zero) specifies the NUL character.-h,--helpβ Print help.-V,--versionβ Print version.[input]β default-([default: -]).[prefix]β defaultx([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.
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β output Kth ofNto stdoutl/Nβ split intoNfiles without splitting lines/recordsl/K/Nβ output Kth ofNto stdout without splitting lines/recordsr/Nβ like'l'but use round robin distributionr/K/Nβ likewise but only output Kth ofNto stdout
π VERSION π
v(uutils coreutils) 0.12.0
Later bestie β this SPLIT(1) page is from v(uutils coreutils) 0.12.0, dated 2026-09-17. Slay and stay iconic π
β¨
π¦ where this page comes from
- arch rolling: uutils-coreutils 0.12.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms