Files
sbase/split.1
T

59 lines
920 B
Groff
Raw Normal View History

2013-06-14 18:55:25 +02:00
.TH SPLIT 1 sbase\-VERSION
.SH NAME
split \- split up a file
.SH SYNOPSIS
.B split
.RB [ \-d ]
.RB [ \-a
2013-06-14 18:55:25 +02:00
.IR len ]
.RB [ \-b
2013-06-14 18:55:25 +02:00
.RI [ bytes [k|m|g]]]
.RB [ \-l
2013-06-14 18:55:25 +02:00
.RI [ lines ]]
.RI [ input
2013-06-14 18:55:25 +02:00
.RI [ prefix ]]
.SH DESCRIPTION
.B split
Reads a file, splitting it into smaller files, every
2013-06-14 18:55:25 +02: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
last valid filename, leaving all the written data on the disk.
2013-06-14 18:55:25 +02:00
The
2013-06-14 18:55:25 +02: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"
Set the suffix length to
2013-06-14 18:55:25 +02:00
.IR len
characters long.
.TP
.B \-b [bytes[k|m|g]]
Start a new file every
2013-06-14 18:55:25 +02:00
.IR bytes
bytes. The units k, m, and g are case insensitive, and powers of 2, not 10.
.TP
.B \-l [lines]
Start a new file every
2013-06-14 18:55:25 +02:00
.IR lines
lines.
.SH SEE ALSO
.IR cat (1)