SPLIT(1)

πŸ“¦ version 0.12.0, in arch rolling

πŸŽ€ 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> β€” put SIZE bytes per output file.
  • -C, --line-bytes <SIZE> β€” put at most SIZE bytes of lines per output file.
  • -l, --lines <NUMBER> β€” put NUMBER lines/records per output file ([default: 1000]).
  • -n, --number <CHUNKS> β€” generate CHUNKS output files; see the explanation below.
  • --additional-suffix <SUFFIX> β€” additional SUFFIX to append to output file names ([default: ], the empty suffix).
  • --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.
  • -d β€” use numeric suffixes starting at 0, not alphabetic.
  • --numeric-suffixes[=<FROM>] β€” same as -d, but allow setting the start value.
  • -x β€” use hex suffixes starting at 0, not alphabetic.
  • --hex-suffixes[=<FROM>] β€” same as -x, but allow setting the start value.
  • -a, --suffix-length <N> β€” generate suffixes of length N (default 2).
  • --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 - ([default: -]).
  • [prefix] β€” default x ([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 into N files based on size of input
  • K/N β€” output Kth of N to stdout
  • l/N β€” split into N files without splitting lines/records
  • l/K/N β€” output Kth of N to stdout without splitting lines/records
  • r/N β€” like 'l' but use round robin distribution
  • r/K/N β€” likewise but only output Kth of N to 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