Commit | Line | Data |
---|---|---|
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 | |
46 | The | |
47 | .Nm split | |
48 | utility reads the given | |
49 | .Ar file | |
50 | and splits it up in to | |
51 | smaller files. | |
52 | .Pp | |
53 | Available options: | |
54 | .Bl -tag -width "bb bytesx" | |
55 | .It Fl Ns Ar lines | |
56 | Create files of length | |
57 | .Fl Ns Ar n | |
58 | lines long. | |
59 | .It Fl b Ar bytes | |
60 | Create files of length | |
61 | .Ar bytes . | |
62 | If no output file length is specified, the file size | |
63 | will default to a lenght of 1000 lines. | |
64 | .El | |
65 | .Pp | |
66 | Available operands: | |
67 | .Bl -tag -width name | |
68 | .It Fl | |
69 | Read from the standard input. | |
70 | .It Ar file | |
71 | A pathname specifying the | |
72 | .Ar file | |
73 | to be split. If no | |
74 | .Ar file | |
75 | operand is given, | |
76 | .Nm split | |
77 | reads from the standard input. | |
78 | .It Ar name | |
79 | If the | |
80 | .Ar name | |
81 | operand is given, | |
82 | the output files will begin with the prefix | |
83 | .Ar name | |
84 | and each sequential portion of the split file | |
85 | receives a lexically ordered suffix | |
86 | in the range of | |
87 | .Bq Em aa-zz . | |
88 | If the operand | |
89 | .Ar name | |
90 | is not specified, | |
91 | the default prefix of | |
92 | .Em x | |
93 | is be used. | |
94 | .Pp | |
95 | .Sh BUGS | |
96 | If you provide | |
97 | .Ar name , | |
98 | .Nm split | |
99 | can only create 676 separate | |
100 | files. The default naming convention allows 2028 separate files. | |
101 | .Sh HISTORY | |
102 | A | |
103 | .Nm split | |
104 | command appeared in | |
105 | .At v6 . |