2015-03-17 17:59:48 -04:00
|
|
|
.Dd March 17, 2015
|
2015-01-31 08:20:02 -05:00
|
|
|
.Dt SPLIT 1
|
2015-01-31 14:37:03 -05:00
|
|
|
.Os sbase
|
2015-01-31 08:07:13 -05:00
|
|
|
.Sh NAME
|
|
|
|
.Nm split
|
|
|
|
.Nd split up a file
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
2015-03-17 17:59:48 -04:00
|
|
|
.Op Fl a Ar num
|
|
|
|
.Op Fl b Ar num[k|m|g] | Fl l Ar num
|
2015-01-31 08:07:13 -05:00
|
|
|
.Op Fl d
|
2015-03-17 17:59:48 -04:00
|
|
|
.Op Ar file Op Ar prefix
|
2015-01-31 08:07:13 -05:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
2015-03-17 17:59:48 -04:00
|
|
|
splits
|
|
|
|
.Ar file
|
|
|
|
into files with 1000 lines each, named with
|
|
|
|
.Ar prefix
|
|
|
|
"x" followed by 2-digit alphabetical count suffixes.
|
|
|
|
If
|
2015-01-31 08:07:13 -05:00
|
|
|
.Nm
|
2015-03-17 17:59:48 -04:00
|
|
|
runs out of suffixes, it stops after the last valid filename.
|
2015-01-31 08:07:13 -05:00
|
|
|
.Sh OPTIONS
|
|
|
|
.Bl -tag -width Ds
|
2015-03-17 17:59:48 -04:00
|
|
|
.It Fl a Ar num
|
|
|
|
Set suffix length to
|
|
|
|
.Ar num
|
|
|
|
characters.
|
|
|
|
The default is 2.
|
|
|
|
.It Fl b Ar num[k|m|g] | Fl l Ar num
|
2015-02-01 14:52:28 -05:00
|
|
|
Start a new file every
|
2015-03-17 17:59:48 -04:00
|
|
|
.Ar num
|
|
|
|
bytes | lines.
|
|
|
|
The units k, m, and g are case insensitive and powers of 2, not 10.
|
|
|
|
The default is 1000 lines.
|
2015-01-31 08:07:13 -05:00
|
|
|
.It Fl d
|
2015-03-17 17:59:48 -04:00
|
|
|
Use decimal rather than alphabetical suffixes.
|
2015-01-31 08:07:13 -05:00
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr cat 1
|
2015-03-17 17:59:48 -04:00
|
|
|
.Sh STANDARDS
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility is compliant with the
|
|
|
|
.St -p1003.1-2008
|
|
|
|
specification.
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Op Fl d
|
|
|
|
flag and g unit are an extension to that specification.
|