xref: /original-bsd/usr.bin/split/split.1 (revision cd18b70b)
@(#)split.1 6.2 (Berkeley) 11/20/86

SPLIT 1 ""
.AT 3
NAME
split - split a file into pieces
SYNOPSIS
split [ -n ] [ -b byte_cnt ] [ file [ name ] ]
DESCRIPTION
Split reads file and writes it in n -line pieces or in byte_cnt byte pieces to a set of output files. The default is in 1000 line pieces. The name of the first output file is name with "aa" appended, and so on, lexicographically, to "zz". If no output name is given, "x" is the default, in which case split will create files from "xaa" to "zzz".

If no input file is given, or if - is given in its stead, then the standard input file is used.

BUGS
If you provide name, split can only create 676 separate files. The default naming convention allows 2028 separate files.