SPLIT(1) COMMAND REFERENCE SPLIT(1)
NAME
split - split a file into pieces
SYNOPSIS
split [ -n ] [ filename [ name ] ]
DESCRIPTION
Split reads filename and writes it in n-line pieces (default
1000), as many as necessary, onto a set of output files. The
name of the first output file is name with aa appended, and
so on lexicographically. If no output name is given, x is
default.
If no input file is given, or if - (a dash) is given
instead, then the standard input file is used.
OPTIONS
-n The file is split into n-line pieces. The default size
is 1000 lines.
EXAMPLES
The following example will split the file text into 500 line
pieces starting with filename xaa:
split -500 text
RETURN VALUE
[NO_ERRS] Command completed without error.
[USAGE] Incorrect command line syntax. Execution
terminated.
[NP_ERR] An error occurred that was not a system
error. Execution terminated.
[P_ERR] A system error occurred. Execution
terminated. See intro(2) for more
information on system errors.
CAVEATS
The maximum number of files that may be created with the aa
- xx appendix is 26 X 26 = 676. An error message is printed
if an attempt is made to create more than this.
SEE ALSO
csplit(1).
Printed 10/17/86 1
%%index%%
na:72,68;
sy:140,160;
de:300,545;
op:845,149;
ex:994,208;
rv:1202,511;
ca:1713,243;
se:1956,84;
%%index%%000000000129