split - split a file into pieces
[-lines] [-l lines] [-b bytes[bkm]] [-C bytes[bkm]] [--lines=lines]
[--bytes=bytes[bkm]] [--line-bytes=bytes[bkm]] [--help] [--version]
This manual page
documents the GNU version of
creates one or more output files (as many as necessary) containing
consecutive sections of the
or the standard input if none is given or the name `-' is given.
puts 1000 lines of the input file, or whatever is left if it is less
than that, into each output file.
The output file names consist of a prefix followed by a group of
letters, chosen so that concatenating the output files in sorted order
by file name produces the original input file, in order. The default
output file name prefix is `x'. If the
argument is given, it is used as the output file name prefix instead.
-lines, -l lines, --lines=lines
lines of the input file into each output file.
-b bytes[bkm], --bytes=bytes[bkm]
bytes of the input file into each output file.
is a nonzero integer, optionally followed by one
of the following characters to specify a different unit.
-C bytes[bkm], --line-bytes=bytes[bkm]
Put into each output file as many complete lines of the input file as
is possible without exceeding
bytes. If a line that is longer than
bytes occurs, put
bytes of it into each output file until less than
bytes of the line are left, then continue normally.
has the same format as for the
Print a usage message and exit with a status code indicating success.
Print version information on standard output then exit.