split Command Examples

Split a file into pieces. More information: https://www.gnu.org/software/coreutils/manual/html_node/split-invocation.html.

split {{[-l|--lines]}} 10 {{path/to/file}}

split {{[-n|--number]}} 5 {{path/to/file}}

split {{[-b|--bytes]}} 512 {{path/to/file}}

split {{[-C|--line-bytes]}} 512 {{path/to/file}}