version 1.2, 1996/06/26 05:39:28 |
version 1.3, 1999/02/04 03:53:48 |
|
|
.Nm split |
.Nm split |
.Op Fl b Ar byte_count[k|m] |
.Op Fl b Ar byte_count[k|m] |
.Op Fl l Ar line_count |
.Op Fl l Ar line_count |
|
.Op Fl p Ar pattern |
.Op Ar file Op Ar name |
.Op Ar file Op Ar name |
.Sh DESCRIPTION |
.Sh DESCRIPTION |
The |
The |
|
|
Create smaller files |
Create smaller files |
.Ar n |
.Ar n |
lines in length. |
lines in length. |
|
.It Fl p Ar pattern |
|
The file is split whenever an input line matches |
|
.Ar pattern , |
|
which is interpreted as an extended regular expression. |
|
The matching line will be the first line of the next output file. |
|
This option is incompatible with the |
|
.Fl b |
|
and |
|
.Fl l |
|
options. |
.El |
.El |
.Pp |
.Pp |
If additional arguments are specified, the first is used as the name |
If additional arguments are specified, the first is used as the name |
|
|
can only create 676 separate |
can only create 676 separate |
files. |
files. |
The default naming convention allows 2028 separate files. |
The default naming convention allows 2028 separate files. |
|
.Pp |
|
The maximum line length for matching patterns is 65536. |
|
.Sh SEE ALSO |
|
.Xr re_format 7 . |
.Sh HISTORY |
.Sh HISTORY |
A |
A |
.Nm split |
.Nm split |