split.1 - sbase - suckless unix tools
(HTM) git clone git://git.suckless.org/sbase
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
split.1 (866B)
---
1 .Dd October 8, 2015
2 .Dt SPLIT 1
3 .Os sbase
4 .Sh NAME
5 .Nm split
6 .Nd split up a file
7 .Sh SYNOPSIS
8 .Nm
9 .Op Fl a Ar num
10 .Op Fl b Ar num[k|m|g] | Fl l Ar num
11 .Op Fl d
12 .Op Ar file Op Ar prefix
13 .Sh DESCRIPTION
14 .Nm
15 splits
16 .Ar file
17 into files with 1000 lines each, named with
18 .Ar prefix
19 "x" followed by 2-digit alphabetical count suffixes.
20 If
21 .Nm
22 runs out of suffixes, it stops after the last valid filename.
23 .Sh OPTIONS
24 .Bl -tag -width Ds
25 .It Fl a Ar num
26 Set suffix length to
27 .Ar num
28 characters.
29 The default is 2.
30 .It Fl b Ar num[k|m|g] | Fl l Ar num
31 Start a new file every
32 .Ar num
33 bytes | lines.
34 The units k, m, and g are case insensitive and powers of 2, not 10.
35 The default is 1000 lines.
36 .It Fl d
37 Use decimal rather than alphabetical suffixes.
38 .El
39 .Sh SEE ALSO
40 .Xr cat 1
41 .Sh STANDARDS
42 POSIX.1-2013.
43 .Pp
44 The
45 .Op Fl d
46 flag and g unit are an extension to that specification.