1 .\" $NetBSD: split.1,v 1.15 2007/05/31 01:35:35 jschauma Exp $
3 .\" Copyright (c) 1990, 1991, 1993, 1994
4 .\" The Regents of the University of California. All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
14 .\" 3. Neither the name of the University nor the names of its contributors
15 .\" may be used to endorse or promote products derived from this software
16 .\" without specific prior written permission.
18 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
19 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" @(#)split.1 8.3 (Berkeley) 4/16/94
37 .Nd split a file into pieces
40 .Op Fl a Ar suffix_length
42 .Fl b Ar byte_count Ns Oo Li k|m Oc |
46 .Op Ar file Op Ar name
50 utility reads the given
52 and breaks it up into files of 1000 lines each.
55 is a single dash or absent,
57 reads from the standard input.
59 itself is not altered.
61 The options are as follows:
66 letters to form the suffix of the file name.
73 is appended to the number, the file is split into
78 is appended to the number, the file is split into
91 If additional arguments are specified, the first is used as the name
92 of the input file which is to be split.
93 If a second additional argument is specified, it is used as a prefix
94 for the names of the files into which the file is split.
95 In this case, each file into which the file is split is named by the
96 prefix followed by a lexically ordered suffix using
98 characters in the range
102 is not specified, two letters are used as the suffix.
106 argument is not specified,
122 option was introduced in
128 would vary the first letter of the filename
129 to increase the number of possible output files.
132 option makes this unnecessary.