xref: /csrg-svn/usr.bin/split/split.1 (revision 66574)
162254Sbostic.\" Copyright (c) 1990, 1991, 1993
262254Sbostic.\"	The Regents of the University of California.  All rights reserved.
319481Smckusick.\"
450661Scael.\" %sccs.include.redist.roff%
548509Scael.\"
6*66574Sbostic.\"	@(#)split.1	8.2 (Berkeley) 04/01/94
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
16*66574Sbostic.Op Fl Ns Ar number
17*66574Sbostic.Op Fl b Ar number
1850661Scael.Op Ar file Op Ar name
1948509Scael.Sh DESCRIPTION
2048509ScaelThe
2148509Scael.Nm split
2248509Scaelutility reads the given
2348509Scael.Ar file
24*66574Sbosticand splits it up into smaller files of 1000 lines each.
2548509Scael.Pp
26*66574SbosticThe options are as follows:
27*66574Sbostic.Bl -tag -width "XXXnumber"
28*66574Sbostic.It Fl number
29*66574SbosticCreate smaller files
30*66574Sbostic.Ar n
31*66574Sbosticlines in length.
32*66574Sbostic.It Fl b
33*66574SbosticCreate smaller files
34*66574Sbostic.Ar number
35*66574Sbosticbytes in length.
3648509Scael.El
3748509Scael.Pp
3848509ScaelAvailable operands:
3948509Scael.Bl -tag -width name
4048509Scael.It Ar file
4148509ScaelA pathname specifying the
4248509Scael.Ar file
43*66574Sbosticto be split.
44*66574SbosticIf no
4548509Scael.Ar file
46*66574Sbosticoperand is given, or if a file operand of
47*66574Sbostic.Dq Li \&-
48*66574Sbosticis given,
4948509Scael.Nm split
5048509Scaelreads from the standard input.
5148509Scael.It Ar name
5248509ScaelIf the
5348509Scael.Ar name
5448509Scaeloperand is given,
5548509Scaelthe output files will begin with the prefix
5648509Scael.Ar name
57*66574Sbosticand each sequential portion of the split file receives a lexically
58*66574Sbosticordered suffix in the range of
5948509Scael.Bq Em aa-zz .
6048509ScaelIf the operand
6148509Scael.Ar name
62*66574Sbosticis not specified, a default prefix of
6348509Scael.Em x
64*66574Sbosticis used, and files are named from
65*66574Sbostic.Dq xaa
66*66574Sbosticto
67*66574Sbostic.Dq zzz .
6848509Scael.Pp
6948509Scael.Sh BUGS
7048509ScaelIf you provide
7148509Scael.Ar name ,
7248509Scael.Nm split
7348509Scaelcan only create 676 separate
74*66574Sbosticfiles.
75*66574SbosticThe default naming convention allows 2028 separate files.
7648509Scael.Sh HISTORY
7748509ScaelA
7850661Scael.Nm split
7948509Scaelcommand appeared in
8048509Scael.At v6 .
81