| Age | Commit message (Collapse) | Author |
|
Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.
Sponsored by: Netflix
|
|
Remove /^\.\\"\s*\$FreeBSD\$$\n/
|
|
Currently, split(1) will clobber any existing output files:
$ split file; ls
xaa xab xac xad
$ split second-file; ls
xaa xab xac xad xae xaf
This patch adds a flag "-c" (mnemonic "create, don't overwrite" or
"continue where you left off"):
$ split file; ls
xaa xab xac xad
$ split -c second-file; ls
xaa xab xac xad xae xaf xag xah xai xaj
Reviewed by: christos
Approved by: kevans
Different Revision: https://reviews.freebsd.org/D38553
|
|
If the input cannot be split into the number of files resulting from the
default suffix length, automatically extend the suffix length rather
than bailing out with 'too many files'.
Suffixes are extended such that the resulting files continue to sort
lexically and "cat *" would reproduce the input. For example, splitting
a 1M lines file into (default) 1000 lines per file would yield files
named 'xaa', 'xab', ..., 'xyy', 'xyz', 'xzaaa', 'xzaab', ..., 'xzanl'.
If '-a' is specified, the suffix length is not auto-extended.
This behavior matches GNU sort(1) since around version 8.16.
Reviewed by: christos
Approved by: kevans
Different Revision: https://reviews.freebsd.org/D38279
|
|
- Mark -d as an optional flag
- Add a prompt to one of the examples for consistency
- Add -d to the usage message
Sponsored by: Klara Inc.
|
|
This was meant to note that both pattern and line matching were
previously restricted, but words are difficult. +line and rearrange.
Sponsored by: Klara, Inc.
|
|
Get rid of split's home-grown logic for growing the buffer; arbitrarily
breaking at LONG_MAX bytes instead of 65536 bytes gives us much more
wiggle room. Additionally, we'll actually fail out entirely if we can't
fit a line, which makes noticing this class of problem much easier.
Reviewed by: bapt, emaste, pauamma
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D36323
|
|
Add EXAMPLES covering -d, -n and -p
Include small explanation about the size of the chunks for the -n option
Approved by: 0mp
Differential Revision: https://reviews.freebsd.org/D25198
Notes:
svn path=/head/; revision=362328
|
|
Renumber cluase 4 to 3, per what everybody else did when BSD granted
them permission to remove clause 3. My insistance on keeping the same
numbering for legal reasons is too pedantic, so give up on that point.
Submitted by: Jan Schaumann <jschauma@stevens.edu>
Pull Request: https://github.com/freebsd/freebsd/pull/96
Notes:
svn path=/head/; revision=314436
|
|
Reported by: delphij
Notes:
svn path=/head/; revision=250451
|
|
alphabetic one.
PR: bin/116209
Submitted by: Marcin Gryszkalis <mg@fork.pl> (adapted from)
Reviewed by: will
MFC after: 1 week
Notes:
svn path=/head/; revision=250432
|
|
is in accordance with the information provided at
ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
Also add $FreeBSD$ to a few files to keep svn happy.
Discussed with: imp, rwatson
Notes:
svn path=/head/; revision=216370
|
|
MFC after: 3 days
Notes:
svn path=/head/; revision=212162
|
|
that are much larger than expected (given the default size).
Change "smaller files" to "split files" which is more in line
with what "-b" actually does.
PR: 119329
Submitted by: Julian Stacey <jhs@berklix.org>
Notes:
svn path=/head/; revision=187663
|
|
having to specify the right number of bytes.
Obtained from: NetBSD
Submitted by: Jan Schaumann <jschauma@netmeister.org>
PR: 113175
Notes:
svn path=/head/; revision=177256
|
|
Notes:
svn path=/head/; revision=162792
|
|
Also make both lowercase and uppercase suffix letters work
as byte-count suffixes, i.e. the following two commands are
equivalent now:
% split -b 4m foo
% split -b 4M foo
Submitted by: Roman Divacky [1]
Lots of help by: cperciva
Reviewed by: cperciva
MFC after: 1 week
Notes:
svn path=/head/; revision=161172
|
|
Sort getopt option handling of -p too, while here.
The changes are adapted from a patch by Ruslan Ermilov, posted as
followup to docs/33852.
PR: docs/33852
Submitted by: Gary W. Swearingen <swear@blarg.net>
MFC after: 1 week
Notes:
svn path=/head/; revision=161106
|
|
Notes:
svn path=/head/; revision=152568
|
|
Remove a non-bug from the BUGS section.
Notes:
svn path=/head/; revision=149618
|
|
if none was specified on the command line. This is not permitted by
POSIX, and no longer needed now that we have the -a option.
PR: 85099
Submitted by: Toby Peterson (Apple Computer)
Notes:
svn path=/head/; revision=149345
|
|
Notes:
svn path=/head/; revision=140368
|
|
Noticed by: simon
Notes:
svn path=/head/; revision=131980
|
|
Notes:
svn path=/head/; revision=131979
|
|
Notes:
svn path=/head/; revision=97766
|
|
Notes:
svn path=/head/; revision=97765
|
|
Notes:
svn path=/head/; revision=97545
|
|
See also csplit(1).
Notes:
svn path=/head/; revision=97336
|
|
SUSV3 requires something like "split -- -" to work. Document the "-" operand.
Notes:
svn path=/head/; revision=97334
|
|
Submitted by: Tim J. Robbins <tim@robbins.dropbear.id.au>
MFC after: 1 month
Notes:
svn path=/head/; revision=90048
|
|
Notes:
svn path=/head/; revision=79755
|
|
Notes:
svn path=/head/; revision=68963
|
|
Notes:
svn path=/head/; revision=68756
|
|
Notes:
svn path=/head/; revision=50477
|
|
the file with a regular expression. Useful for e.g. 'cvs diff' output.
Also compile cleanly with -Wall and fix a few style bugs.
PR: bin/9405
Notes:
svn path=/head/; revision=43513
|
|
Notes:
svn path=/cvs2svn/branches/CHRISTOS/; revision=1590
|