version 1.9, 2003/06/03 02:56:16 |
version 1.10, 2005/09/07 12:45:59 |
|
|
.Nd split a file into pieces |
.Nd split a file into pieces |
.Sh SYNOPSIS |
.Sh SYNOPSIS |
.Nm split |
.Nm split |
.Op Fl b Ar byte_count[k|m] |
.Oo |
|
.Fl b |
|
.Sm off |
|
.Ar byte_count Op Ar k | m |
|
.Sm on |
|
.Oc |
.Op Fl l Ar line_count |
.Op Fl l Ar line_count |
.Op Fl p Ar pattern |
.Op Fl p Ar pattern |
.Op Ar file Op Ar name |
.Op Ar file Op Ar name |
|
|
.Pp |
.Pp |
The options are as follows: |
The options are as follows: |
.Bl -tag -width Ds |
.Bl -tag -width Ds |
.It Fl b |
.It Xo |
|
.Fl b |
|
.Sm off |
|
.Ar byte_count |
|
.Op Ar k | m |
|
.Sm on |
|
.Xc |
Create smaller files |
Create smaller files |
.Ar byte_count |
.Ar byte_count |
bytes in length. |
bytes in length. |
|
|
is appended to the number, the file is split into |
is appended to the number, the file is split into |
.Ar byte_count |
.Ar byte_count |
megabyte pieces. |
megabyte pieces. |
.It Fl l |
.It Fl l Ar line_count |
Create smaller files |
Create smaller files |
.Ar n |
.Ar line_count |
lines in length. |
lines in length. |
.It Fl p Ar pattern |
.It Fl p Ar pattern |
The file is split whenever an input line matches |
The file is split whenever an input line matches |