2013-06-14 16:55:25 +00:00
|
|
|
.TH SPLIT 1 sbase\-VERSION
|
|
|
|
.SH NAME
|
|
|
|
split \- split up a file
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.B split
|
|
|
|
.RB [ \-d ]
|
2013-07-20 05:27:42 +00:00
|
|
|
.RB [ \-a
|
2013-06-14 16:55:25 +00:00
|
|
|
.IR len ]
|
2013-07-20 05:27:42 +00:00
|
|
|
.RB [ \-b
|
2013-06-14 16:55:25 +00:00
|
|
|
.RI [ bytes [k|m|g]]]
|
2013-07-20 05:27:42 +00:00
|
|
|
.RB [ \-l
|
2013-06-14 16:55:25 +00:00
|
|
|
.RI [ lines ]]
|
2013-07-20 05:27:42 +00:00
|
|
|
.RI [ input
|
2013-06-14 16:55:25 +00:00
|
|
|
.RI [ prefix ]]
|
|
|
|
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.B split
|
2013-07-20 05:27:42 +00:00
|
|
|
Reads a file, splitting it into smaller files, every
|
2013-06-14 16:55:25 +00:00
|
|
|
.IR bytes
|
|
|
|
bytes
|
|
|
|
or
|
|
|
|
.IR lines
|
|
|
|
lines. If
|
|
|
|
.B split
|
|
|
|
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.
|
2013-06-14 16:55:25 +00:00
|
|
|
|
2013-07-20 05:27:42 +00:00
|
|
|
The
|
2013-06-14 16:55:25 +00:00
|
|
|
.IR b
|
|
|
|
and
|
|
|
|
.IR l
|
|
|
|
flags are mutually exclusive. Only the last one specified will be obeyed.
|
|
|
|
|
|
|
|
.SH OPTIONS
|
|
|
|
.TP
|
|
|
|
.B \-d
|
|
|
|
Use decimal suffixes rather than alphabetical.
|
|
|
|
|
|
|
|
.TP
|
|
|
|
.B \-a "len"
|
2013-07-20 05:27:42 +00:00
|
|
|
Set the suffix length to
|
2013-06-14 16:55:25 +00:00
|
|
|
.IR len
|
|
|
|
characters long.
|
|
|
|
|
|
|
|
.TP
|
|
|
|
.B \-b [bytes[k|m|g]]
|
2013-07-20 05:27:42 +00:00
|
|
|
Start a new file every
|
2013-06-14 16:55:25 +00:00
|
|
|
.IR bytes
|
|
|
|
bytes. The units k, m, and g are case insensitive, and powers of 2, not 10.
|
|
|
|
|
|
|
|
.TP
|
|
|
|
.B \-l [lines]
|
2013-07-20 05:27:42 +00:00
|
|
|
Start a new file every
|
2013-06-14 16:55:25 +00:00
|
|
|
.IR lines
|
|
|
|
lines.
|
|
|
|
|
|
|
|
.SH SEE ALSO
|
|
|
|
.IR cat (1)
|