FreeBSD Bugzilla – Attachment 18962 Details for
Bug 33852
split(1) man page implies that input file is removed.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.79 KB, created by
Gary W. Swearingen
on 2002-01-14 01:00:04 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Gary W. Swearingen
Created:
2002-01-14 01:00:04 UTC
Size:
1.79 KB
patch
obsolete
>--- /tmp/split..orig.1 Sun Jan 13 13:59:09 2002 >+++ /tmp/split.1 Sun Jan 13 15:11:33 2002 >@@ -40,17 +40,21 @@ > .Nd split a file into pieces > .Sh SYNOPSIS > .Nm >-.Op Fl b Ar byte_count[k|m] >-.Op Fl l Ar line_count >-.Op Fl p Ar pattern >-.Op Ar file Op Ar name >+.Op Fl b Ar byte_count[k|m] | Fl l Ar line_count | Fl p Ar pattern >+.Op Ar filename Op Ar prefix > .Sh DESCRIPTION > The > .Nm >-utility reads the given >-.Ar file >+utility reads file >+.Ar filename > (or standard input if no file is specified) >-and breaks it up into files of 1000 lines each. >+and breaks it up into files of 1000 lines >+(or an optionally specified size) each, leaving file >+.Ar filename >+unchanged. >+No padding is added, so the last new file is normally smaller than the >+others and proper catenation of the output files creates a copy of the >+unsplit original. > .Pp > The options are as follows: > .Bl -tag -width Ds >@@ -77,11 +81,6 @@ > .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 > .Pp > If additional arguments are specified, the first is used as the name >@@ -93,13 +92,13 @@ > .Dq Li aa-zz . > .Pp > If the >-.Ar name >+.Ar prefix > argument is not specified, the file is split into lexically ordered > files named in the range of > .Dq Li xaa-zzz . > .Sh BUGS > For historical reasons, if you specify >-.Ar name , >+.Ar prefix , > .Nm > can only create 676 separate > files. >--- /tmp/split..orig.c Sun Jan 13 15:13:54 2002 >+++ /tmp/split.c Sun Jan 13 15:18:26 2002 >@@ -312,6 +312,6 @@ > usage() > { > (void)fprintf(stderr, >-"usage: split [-b byte_count] [-l line_count] [-p pattern] [file [prefix]]\n"); >+"usage: split [-b byte_count | -l line_count | -p pattern] [filename [prefix]]\n"); > exit(EX_USAGE); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 33852
: 18962