Home | History | Annotate | Line # | Download | only in split
split.1 revision 1.4
 Copyright (c) 1990, 1991 Regents of the University of California.
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. All advertising materials mentioning features or use of this software
must display the following acknowledgement:
This product includes software developed by the University of
California, Berkeley and its contributors.
4. Neither the name of the University nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.

from: @(#)split.1 6.4 (Berkeley) 7/29/91
$Id: split.1,v 1.4 1994/04/01 04:01:48 cgd Exp $

.Dd July 29, 1991 .Dt SPLIT 1 .Os .Sh NAME .Nm split .Nd split a file into pieces .Sh SYNOPSIS .Nm split .Op Fl Ns Ar n .Op Fl b Ar bytes .Op Ar file Op Ar name .Sh DESCRIPTION The .Nm split utility reads the given .Ar file and splits it up in to smaller files.

p Available options: l -tag -width "bb bytesx" t Fl Ns Ar lines Create files of length .Fl Ns Ar n lines long. t Fl b Ar bytes Create files of length .Ar bytes . .El

p If no output file length is specified, the file size will default to a length of 1000 lines.

p Available operands: l -tag -width name t Fl Read from the standard input. t Ar file A pathname specifying the .Ar file to be split. If no .Ar file operand is given, .Nm split reads from the standard input. t Ar name If the .Ar name operand is given, the output files will begin with the prefix .Ar name and each sequential portion of the split file receives a lexically ordered suffix in the range of q Em aa-zz . If the operand .Ar name is not specified, the default prefix of .Em x is be used.

p .Sh BUGS If you provide .Ar name , .Nm split can only create 676 separate files. The default naming convention allows 2028 separate files. .Sh HISTORY A .Nm split command appeared in .At v6 .