'\"macro stdmacro
.if n .pH g1.split @(#)split	40.5 of 10/10/89
.\" Copyright 1989 AT&T
.nr X
.if \nX=0 .ds x} split 1 "Directory and File Management Utilities" "\&"
.if \nX=1 .ds x} split 1 "Directory and File Management Utilities"
.if \nX=2 .ds x} split 1 "" "\&"
.if \nX=3 .ds x} split "" "" "\&"
.TH \*(x}
.SH NAME
\f4split\f1 \- split a file into pieces
.SH SYNOPSIS
\f4split\f1
[
\f4\-\f2n\f1
]
[ \f2file\f1 [ \f2name\f1 ] ]
.SH DESCRIPTION
\f4split\fP
reads
.I file
and writes
it in
.IR n -line
pieces
(default 1000 lines)
onto
a set of output files.  The name of the first output
file is
.I name
with
\f4aa\f1
appended, and so on
lexicographically,
up to
\f4zz\f1
(a maximum of 676 files).
The maximum length of
.I name
is 2 characters less than the maximum filename length
allowed by the filesystem.
See
\f4statvfs\f1(2).
If no output name is given,
\f4x\f1
is default.
.PP
If no input file is given, or
if
\f4\-\f1
is given in its stead,
then the standard input file is used.
.SH SEE ALSO
\f4bfs\fP(1), \f4csplit\fP(1).
.sp .2
\f4statvfs\fP(2) in the \f2Programmer's Reference Manual\f1.
.\"	@(#)split.1	6.2 of 9/2/83
.Ee
