Annotation of src/usr.bin/split/split.1, Revision 1.2
1.2 ! deraadt 1: .\" $OpenBSD: split.1,v 1.5 1994/12/21 08:20:35 jtc Exp $
1.1 deraadt 2: .\" $NetBSD: split.1,v 1.5 1994/12/21 08:20:35 jtc Exp $
3: .\"
4: .\" Copyright (c) 1990, 1991, 1993, 1994
5: .\" The Regents of the University of California. All rights reserved.
6: .\"
7: .\" Redistribution and use in source and binary forms, with or without
8: .\" modification, are permitted provided that the following conditions
9: .\" are met:
10: .\" 1. Redistributions of source code must retain the above copyright
11: .\" notice, this list of conditions and the following disclaimer.
12: .\" 2. Redistributions in binary form must reproduce the above copyright
13: .\" notice, this list of conditions and the following disclaimer in the
14: .\" documentation and/or other materials provided with the distribution.
15: .\" 3. All advertising materials mentioning features or use of this software
16: .\" must display the following acknowledgement:
17: .\" This product includes software developed by the University of
18: .\" California, Berkeley and its contributors.
19: .\" 4. Neither the name of the University nor the names of its contributors
20: .\" may be used to endorse or promote products derived from this software
21: .\" without specific prior written permission.
22: .\"
23: .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
24: .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25: .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26: .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
27: .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28: .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29: .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30: .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31: .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32: .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33: .\" SUCH DAMAGE.
34: .\"
35: .\" @(#)split.1 8.3 (Berkeley) 4/16/94
36: .\"
37: .Dd April 16, 1994
38: .Dt SPLIT 1
39: .Os
40: .Sh NAME
41: .Nm split
42: .Nd split a file into pieces
43: .Sh SYNOPSIS
44: .Nm split
45: .Op Fl b Ar byte_count[k|m]
46: .Op Fl l Ar line_count
47: .Op Ar file Op Ar name
48: .Sh DESCRIPTION
49: The
50: .Nm split
51: utility reads the given
52: .Ar file
53: (or standard input if no file is specified)
54: and breaks it up into files of 1000 lines each.
55: .Pp
56: The options are as follows:
57: .Bl -tag -width Ds
58: .It Fl b
59: Create smaller files
60: .Ar byte_count
61: bytes in length.
62: If
63: .Dq Li k
64: is appended to the number, the file is split into
65: .Ar byte_count
66: kilobyte pieces.
67: If
68: .Dq Li m
69: is appended to the number, the file is split into
70: .Ar byte_count
71: megabyte pieces.
72: .It Fl l
73: Create smaller files
74: .Ar n
75: lines in length.
76: .El
77: .Pp
78: If additional arguments are specified, the first is used as the name
79: of the input file which is to be split.
80: If a second additional argument is specified, it is used as a prefix
81: for the names of the files into which the file is split.
82: In this case, each file into which the file is split is named by the
83: prefix followed by a lexically ordered suffix in the range of
84: .Dq Li aa-zz .
85: .Pp
86: If the
87: .Ar name
88: argument is not specified, the file is split into lexically ordered
89: files named in the range of
90: .Dq Li xaa-zzz .
91: .Sh BUGS
92: For historical reasons, if you specify
93: .Ar name ,
94: .Nm split
95: can only create 676 separate
96: files.
97: The default naming convention allows 2028 separate files.
98: .Sh HISTORY
99: A
100: .Nm split
101: command appeared in
102: .At v6 .