Linux "split" Command Line Options and Examples
split a file into pieces

Output pieces of FILE to PREFIXaa, PREFIXab, ...


Usage:

split [OPTION]... [FILE [PREFIX]]




Command Line Options:

-a
generate suffixes of length N (default 2)
split -a ...
--additional-suffix
append an additional SUFFIX to file names
split --additional-suffix ...
-b
put SIZE bytes per output file
split -b ...
-C
put at most SIZE bytes of records per output file
split -C ...
-d
use numeric suffixes starting at 0, not alphabetic
split -d ...
--numeric-suffixes[
same as -d, but allow setting the start value
split --numeric-suffixes[ ...
-x
use hex suffixes starting at 0, not alphabetic
split -x ...
--hex-suffixes[
same as -x, but allow setting the start value
split --hex-suffixes[ ...
-e
do not generate empty output files with '-n'
split -e ...
--filter
write to shell COMMAND; file name is $FILE
split --filter ...
-l
put NUMBER lines/records per output file
split -l ...
-n
generate CHUNKS output files; see explanation below
split -n ...
-t
use SEP instead of newline as the record separator; '\0' (zero) specifies the NUL character
split -t ...
-u
immediately copy input to output with '-n r/...'
split -u ...
--verbose
print a diagnostic just before each output file is opened
split --verbose ...
--help
display this help and exit
split --help ...
--version
output version information and exitThe SIZE argument is an integer and optional unit (example: 10K is 10*1024). Units are K,M,G,T,P,E,Z,Y (pow‐ers of 1024) or KB,MB,... (powers of 1000).CHUNKS may be:N split into N files based on size of inputK/N output Kth of N to stdoutl/N split into N files without splitting lines/recordsl/K/N output Kth of N to stdout without splitting lines/recordsr/N like 'l' but use round robin distributionr/K/N likewise but only output Kth of N to stdoutAUTHORWritten by Torbjorn Granlund and Richard M. Stallman.REPORTING BUGSGNU coreutils online help: <http://www.gnu.org/software/coreutils/>Report split 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 per‐mitted by law.
split --version ...