csplit Command Examples

Split a file into pieces. This generates files named "xx00", "xx01", and so on. More information: https://www.gnu.org/software/coreutils/manual/html_node/csplit-invocation.html.

csplit {{path/to/file}} 5 23

csplit {{path/to/file}} 5 {*}

csplit {{[-k|--keep-files]}} {{path/to/file}} 5 {*}

csplit {{path/to/file}} 5 {{[-f|--prefix]}} {{prefix}}

csplit {{path/to/file}} /{{regular_expression}}/