Linux "csplit" Command Line Options and Examples
split a file into sections determined by context lines

Output pieces of FILE separated by PATTERN(s) to files 'xx00', 'xx01', ...


Usage:

csplit [OPTION]... FILE PATTERN...




Command Line Options:

-b
use sprintf FORMAT instead of %02d
csplit -b ...
-f
use PREFIX instead of 'xx'
csplit -f ...
-k
do not remove output files on errors
csplit -k ...
--suppress-matched
suppress the lines matching PATTERN
csplit --suppress-matched ...
-n
use specified number of digits instead of 2
csplit -n ...
-s
do not print counts of output file sizes
csplit -s ...
-z
remove empty output files
csplit -z ...
--help
display this help and exit
csplit --help ...
--version
output version information and exitEach PATTERN may be:INTEGERcopy up to but not including specified line number/REGEXP/[OFFSET]copy up to but not including a matching line%REGEXP%[OFFSET]skip to, but not including a matching line{INTEGER}repeat the previous pattern specified number of times{*} repeat the previous pattern as many times as possibleA line OFFSET is a required '+' or '-' followed by a positive integer.AUTHORWritten by Stuart Kemp and David MacKenzie.REPORTING BUGSGNU coreutils online help: <http://www.gnu.org/software/coreutils/>Report csplit translation bugs to <http://translationproject.org/team/>COPYRIGHTCopyright © 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
csplit --version ...