xref: /csrg-svn/usr.bin/split/split.1 (revision 62254)
1*62254Sbostic.\" Copyright (c) 1990, 1991, 1993
2*62254Sbostic.\"	The Regents of the University of California.  All rights reserved.
319481Smckusick.\"
450661Scael.\" %sccs.include.redist.roff%
548509Scael.\"
6*62254Sbostic.\"	@(#)split.1	8.1 (Berkeley) 06/06/93
748509Scael.\"
848509Scael.Dd
948509Scael.Dt SPLIT 1
1050661Scael.Os
1148509Scael.Sh NAME
1248509Scael.Nm split
1348509Scael.Nd split a file into pieces
1448509Scael.Sh SYNOPSIS
1548509Scael.Nm split
1648509Scael.Op Fl Ns Ar n
1748509Scael.Op Fl b Ar bytes
1850661Scael.Op Ar file Op Ar name
1948509Scael.Sh DESCRIPTION
2048509ScaelThe
2148509Scael.Nm split
2248509Scaelutility reads the given
2348509Scael.Ar file
2448509Scaeland splits it up in to
2548509Scaelsmaller files.
2648509Scael.Pp
2748509ScaelAvailable options:
2848509Scael.Bl -tag -width "bb bytesx"
2948509Scael.It Fl Ns Ar lines
3048509ScaelCreate files of length
3148509Scael.Fl Ns Ar n
3248509Scaellines long.
3348509Scael.It Fl b Ar bytes
3448509ScaelCreate files of length
3548509Scael.Ar bytes .
3648509ScaelIf no output file length is specified, the file size
3748509Scaelwill default to a lenght of 1000 lines.
3848509Scael.El
3948509Scael.Pp
4048509ScaelAvailable operands:
4148509Scael.Bl -tag -width name
4248509Scael.It Fl
4348509ScaelRead from the standard input.
4448509Scael.It Ar file
4548509ScaelA pathname specifying the
4648509Scael.Ar file
4748509Scaelto be split.  If no
4848509Scael.Ar file
4948509Scaeloperand is given,
5048509Scael.Nm split
5148509Scaelreads from the standard input.
5248509Scael.It Ar name
5348509ScaelIf the
5448509Scael.Ar name
5548509Scaeloperand is given,
5648509Scaelthe output files will begin with the prefix
5748509Scael.Ar name
5848509Scaeland each sequential portion of the split file
5948509Scaelreceives a lexically ordered suffix
6048509Scaelin the range of
6148509Scael.Bq Em aa-zz .
6248509ScaelIf the operand
6348509Scael.Ar name
6448509Scaelis not specified,
6548509Scaelthe default prefix of
6648509Scael.Em x
6748509Scaelis be used.
6848509Scael.Pp
6948509Scael.Sh BUGS
7048509ScaelIf you provide
7148509Scael.Ar name ,
7248509Scael.Nm split
7348509Scaelcan only create 676 separate
7430125Sbosticfiles.  The default naming convention allows 2028 separate files.
7548509Scael.Sh HISTORY
7648509ScaelA
7750661Scael.Nm split
7848509Scaelcommand appeared in
7948509Scael.At v6 .
80