Install mse man page, and create link for it
[unix-history] / usr.bin / split / split.1
CommitLineData
15637ed4
RG
1.\" Copyright (c) 1990, 1991 Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.
9.\" 2. Redistributions in binary form must reproduce the above copyright
10.\" notice, this list of conditions and the following disclaimer in the
11.\" documentation and/or other materials provided with the distribution.
12.\" 3. All advertising materials mentioning features or use of this software
13.\" must display the following acknowledgement:
14.\" This product includes software developed by the University of
15.\" California, Berkeley and its contributors.
16.\" 4. Neither the name of the University nor the names of its contributors
17.\" may be used to endorse or promote products derived from this software
18.\" without specific prior written permission.
19.\"
20.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)split.1 6.4 (Berkeley) 7/29/91
33.\"
34.Dd July 29, 1991
35.Dt SPLIT 1
36.Os
37.Sh NAME
38.Nm split
39.Nd split a file into pieces
40.Sh SYNOPSIS
41.Nm split
42.Op Fl Ns Ar n
43.Op Fl b Ar bytes
44.Op Ar file Op Ar name
45.Sh DESCRIPTION
46The
47.Nm split
48utility reads the given
49.Ar file
50and splits it up in to
51smaller files.
52.Pp
53Available options:
54.Bl -tag -width "bb bytesx"
55.It Fl Ns Ar lines
56Create files of length
57.Fl Ns Ar n
58lines long.
59.It Fl b Ar bytes
60Create files of length
61.Ar bytes .
62If no output file length is specified, the file size
63will default to a lenght of 1000 lines.
64.El
65.Pp
66Available operands:
67.Bl -tag -width name
68.It Fl
69Read from the standard input.
70.It Ar file
71A pathname specifying the
72.Ar file
73to be split. If no
74.Ar file
75operand is given,
76.Nm split
77reads from the standard input.
78.It Ar name
79If the
80.Ar name
81operand is given,
82the output files will begin with the prefix
83.Ar name
84and each sequential portion of the split file
85receives a lexically ordered suffix
86in the range of
87.Bq Em aa-zz .
88If the operand
89.Ar name
90is not specified,
91the default prefix of
92.Em x
93is be used.
94.Pp
95.Sh BUGS
96If you provide
97.Ar name ,
98.Nm split
99can only create 676 separate
100files. The default naming convention allows 2028 separate files.
101.Sh HISTORY
102A
103.Nm split
104command appeared in
105.At v6 .