OS Manuals

/usr/bin/csplit

Cross-platform Rust rewrite of the GNU coreutils.

From uutils 0.12.0-r6 (os), captured 2026-11-07 by running csplit --help (exit 0). permalink

Split a file into sections determined by context lines

Usage: csplit [OPTION]... FILE PATTERN...

Options:
  -b, --suffix-format <FORMAT>  use sprintf FORMAT instead of %02d
  -f, --prefix <PREFIX>         use PREFIX instead of 'xx'
  -k, --keep-files              do not remove output files on errors
      --suppress-matched        suppress the lines matching PATTERN
  -n, --digits <DIGITS>         use specified number of digits instead of 2
  -q, --quiet                   do not print counts of output file sizes [aliases: -s, --silent]
  -z, --elide-empty-files       remove empty output files
  -h, --help                    Print help
  -V, --version                 Print version

Output pieces of FILE separated by PATTERN(s) to files 'xx00', 'xx01', ..., and output byte counts
of each piece to standard output.
Options (9)
OptionDescriptionSource
-b, --suffix-format FORMATuse sprintf FORMAT instead of %02dhelp + man
-f, --prefix PREFIXuse PREFIX instead of 'xx'help + man
-k, --keep-filesdo not remove output files on errorshelp + man
--suppress-matchedsuppress the lines matching PATTERNhelp + man
-n, --digits DIGITSuse specified number of digits instead of 2help + man
-q, --quietdo not print counts of output file sizes [aliases: -s, --silent]help + man
-z, --elide-empty-filesremove empty output fileshelp + man
-h, --helpPrint helphelp + man
-V, --versionPrint versionhelp + man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.