SPLIT(1,C) AIX Commands Reference SPLIT(1,C)
-------------------------------------------------------------------------------
split
PURPOSE
Splits a file into pieces.
SYNTAX
+- -1000 -+ +--------+ +--- x ----+
split ---| |---| |---| |---|
+- - num -+ +- file -+ +- prefix -+
DESCRIPTION
The split command reads file and writes it in num-line pieces (default 1000
lines) to a set of output files. The name of the first output file is
prefixaa, the second is prefixab, and so on lexicographically, through prefixzz
(a maximum of 676 files). prefix cannot be longer than 12 characters. If you
do not specify an output name, x is assumed.
If you do not specify an input file, or if you specify - (minus) in place of
file, split reads standard input.
EXAMPLES
1. To split a file into 1000-line segments:
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 file name prefix:
split -50 book sect
This splits "book" into 50-line segments named "sect"aa, "sect"ab,
"sect"ac, and so forth.
RELATED INFORMATION
See the following commands: "bfs" and "csplit."
Processed November 8, 1990 SPLIT(1,C) 1