csplit

version: 0.0.9
csplit [OPTIONS] <file> <pattern>...

split a file into sections determined by context lines

Options

--help, -h

Print help information

--version, -V

Print version information

--suffix-format=<FORMAT>, -b <FORMAT>

use sprintf FORMAT instead of %02d

--prefix=<PREFIX>, -f <PREFIX>

use PREFIX instead of 'xx'

--keep-files, -k

do not remove output files on errors

--suppress-matched

suppress the lines matching PATTERN

--digits=<DIGITS>, -n <DIGITS>

use specified number of digits instead of 2

--quiet, --silent, -s

do not print counts of output file sizes

--elide-empty-files, -z

remove empty output files