csplit(1) General Commands Manual csplit(1)

csplit - Split a file into sections determined by context lines

csplit [-b|--suffix-format] [-f|--prefix] [-k|--keep-files] [--suppress-matched] [-n|--digits] [-s|--quiet] [-z|--elide-empty-files] [-h|--help] [-V|--version] <file> <pattern>

Split a file into sections determined by context lines

use sprintf FORMAT instead of %02d
use PREFIX instead of 'xx'
do not remove output files on errors
suppress the lines matching PATTERN
use specified number of digits instead of 2
do not print counts of output file sizes
remove empty output files
Print help
Print version

Output pieces of FILE separated by PATTERN(s) to files 'xx00', 'xx01', ..., and output byte counts of each piece to standard output.

v0.0.26

csplit 0.0.26