2015-01-31 13:07:13 +00:00
|
|
|
.Dd January 30, 2015
|
2015-01-31 13:20:02 +00:00
|
|
|
.Dt SPLIT 1
|
2015-01-31 13:07:13 +00:00
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm split
|
|
|
|
.Nd split up a file
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
|
|
|
.Op Fl a Ar len
|
|
|
|
.Op Fl b Ar bytes[k|m|g]
|
|
|
|
.Op Fl d
|
|
|
|
.Op Fl l Ar lines
|
|
|
|
.Op Ar input Op Ar prefix
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
|
|
|
reads a file, splitting it into smaller files, every
|
|
|
|
.Ar bytes
|
2013-06-14 16:55:25 +00:00
|
|
|
bytes
|
|
|
|
or
|
2015-01-31 13:07:13 +00:00
|
|
|
.Ar lines
|
2013-06-14 16:55:25 +00:00
|
|
|
lines. If
|
2015-01-31 13:07:13 +00:00
|
|
|
.Nm
|
2013-06-14 16:55:25 +00:00
|
|
|
runs out of filenames before all the data can be written, it stops at the
|
2013-07-20 05:27:42 +00:00
|
|
|
last valid filename, leaving all the written data on the disk.
|
|
|
|
The
|
2015-01-31 13:07:13 +00:00
|
|
|
.Fl b
|
2013-06-14 16:55:25 +00:00
|
|
|
and
|
2015-01-31 13:07:13 +00:00
|
|
|
.Fl l
|
2013-06-14 16:55:25 +00:00
|
|
|
flags are mutually exclusive. Only the last one specified will be obeyed.
|
2015-01-31 13:07:13 +00:00
|
|
|
.Sh OPTIONS
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
.It Fl a Ar len
|
2013-07-20 05:27:42 +00:00
|
|
|
Set the suffix length to
|
2015-01-31 13:07:13 +00:00
|
|
|
.Ar len
|
2013-06-14 16:55:25 +00:00
|
|
|
characters long.
|
2015-01-31 13:07:13 +00:00
|
|
|
.It Fl b Ar bytes[k|m|g]
|
|
|
|
start a new file every
|
|
|
|
.Ar bytes
|
2013-06-14 16:55:25 +00:00
|
|
|
bytes. The units k, m, and g are case insensitive, and powers of 2, not 10.
|
2015-01-31 13:07:13 +00:00
|
|
|
.It Fl d
|
|
|
|
Use decimal suffixes rather than alphabetical.
|
|
|
|
.It Fl l Ar lines
|
2013-07-20 05:27:42 +00:00
|
|
|
Start a new file every
|
2015-01-31 13:07:13 +00:00
|
|
|
.Ar lines
|
2013-06-14 16:55:25 +00:00
|
|
|
lines.
|
2015-01-31 13:07:13 +00:00
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr cat 1
|