split(1) — Commands
OSF
NAME
split − Splits a file into pieces
SYNOPSIS
split [−number] [file | − [prefix]]
The split command reads file and writes it in number-line pieces (default 1000 lines) to a set of output files.
FLAGS
-numberSpecifies the number of lines in each output file. The default is 1000 lines per output file.
DESCRIPTION
The name of the first output file is prefixaa, the second is prefixab, and so on lexicographically, through prefixzz (a maximum of 676 files). The value of prefix cannot be longer than the value of NAME_MAX from limits.h minus two. If you do not specify an output name, x is assumed.
If you do not specify an input file, or if you specify - (dash) in place of file, split reads standard input.
EXAMPLES
1.To split a file into 1000-line segments, enter:
split book
This splits book into 1000-line segments named xaa, xab, xac, and so forth.
2.To split a file into 50-line segments and specify the filename prefix, enter:
split -50 book sect
This splits book into 50-line segments named sectaa, sectab, sectac, and so forth.