csplit

[2] The version of csplit bundled in GNU coreutils was written by Stuart Kemp and David MacKenzie.

[3] The command is available as a separate package for Microsoft Windows as part of the UnxUtils collection of native Win32 ports of common GNU Unix-like utilities.

[4] The command-syntax is: The patterns may be line numbers or regular expressions.

For example, the default prefix string (xx) and number of digits (2) in the output filenames can be changed.

As with most Unix utilities, a return code of 0 indicates success, while nonzero values indicate failure.