<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.bin/split/split.1, branch releng/13.4</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F13.4</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F13.4'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2023-09-14T14:59:52Z</updated>
<entry>
<title>split(1): auto-extend suffix length if required</title>
<updated>2023-09-14T14:59:52Z</updated>
<author>
<name>Jan Schaumann</name>
<email>jschauma@netmeister.org</email>
</author>
<published>2023-05-30T12:55:38Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=31ced5c14337a68a2e6bfde06d6f4cd9a465f218'/>
<id>urn:sha1:31ced5c14337a68a2e6bfde06d6f4cd9a465f218</id>
<content type='text'>
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

(cherry picked from commit c4f7198f47c15eece849d06e8fdd1fb46ed43bba)

split(1): add '-c' to continue creating files

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

(cherry picked from commit ac17fc816e67a4e5e2e481b5001577a8d589f8b6)
</content>
</entry>
<entry>
<title>split: Update synopsis and usage; fix examples</title>
<updated>2023-09-14T14:59:52Z</updated>
<author>
<name>Mateusz Piotrowski</name>
<email>0mp@FreeBSD.org</email>
</author>
<published>2023-04-14T11:50:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a721afaf85437708ae45a5b3baaa6915f0f1aba0'/>
<id>urn:sha1:a721afaf85437708ae45a5b3baaa6915f0f1aba0</id>
<content type='text'>
- 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.

(cherry picked from commit fb499259997c0bfd724b7b67578035cd977ef60f)
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: one-line nroff pattern</title>
<updated>2023-08-23T17:43:32Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-22T01:32:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=24115b70d6d614ed7ac5cfc4f51fa9d6cfe8b1b2'/>
<id>urn:sha1:24115b70d6d614ed7ac5cfc4f51fa9d6cfe8b1b2</id>
<content type='text'>
Remove /^\.\\"\s*\$FreeBSD\$$\n/

Similar commit in main:
(cherry picked from commit b2c76c41be32)
</content>
</entry>
<entry>
<title>split: add word order fix</title>
<updated>2022-11-11T18:08:54Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2022-10-25T21:51:21Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6b628a694d88cec83a5c2432e2d52e34848976f8'/>
<id>urn:sha1:6b628a694d88cec83a5c2432e2d52e34848976f8</id>
<content type='text'>
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.

(cherry picked from commit 7aaa50c6b58319ec948e8048fb165958bc47a356)
</content>
</entry>
<entry>
<title>split: switch to getline() for line/pattern matching</title>
<updated>2022-11-11T18:08:46Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2022-08-23T02:05:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f6a842313ca28d300beb36c0b765c10e0970b2ca'/>
<id>urn:sha1:f6a842313ca28d300beb36c0b765c10e0970b2ca</id>
<content type='text'>
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.

(cherry picked from commit 5c053aa3c5e907bdd1ac466ce9b58611781c2c20)
</content>
</entry>
<entry>
<title>split(1): Add EXAMPLES section</title>
<updated>2020-06-18T15:14:10Z</updated>
<author>
<name>Fernando Apesteguía</name>
<email>fernape@FreeBSD.org</email>
</author>
<published>2020-06-18T15:14:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e48cafb55ddaa7ac3ed73ddf25b8019531c83d71'/>
<id>urn:sha1:e48cafb55ddaa7ac3ed73ddf25b8019531c83d71</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>Renumber copyright clause 4</title>
<updated>2017-02-28T23:42:47Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2017-02-28T23:42:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fbbd9655e5107c68e4e0146ff22b73d7350475bc'/>
<id>urn:sha1:fbbd9655e5107c68e4e0146ff22b73d7350475bc</id>
<content type='text'>
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 &lt;jschauma@stevens.edu&gt;
Pull Request:	https://github.com/freebsd/freebsd/pull/96
</content>
</entry>
<entry>
<title>Bump .Dd for recent content change.</title>
<updated>2013-05-10T12:49:16Z</updated>
<author>
<name>Eitan Adler</name>
<email>eadler@FreeBSD.org</email>
</author>
<published>2013-05-10T12:49:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a93b9b7d11e3329f63035780e17f52428550d44c'/>
<id>urn:sha1:a93b9b7d11e3329f63035780e17f52428550d44c</id>
<content type='text'>
Reported by:	delphij
</content>
</entry>
<entry>
<title>Implement 'split -d' which allows a numeric suffix instead of an</title>
<updated>2013-05-10T04:23:03Z</updated>
<author>
<name>Eitan Adler</name>
<email>eadler@FreeBSD.org</email>
</author>
<published>2013-05-10T04:23:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7f418e34078c7f45e389f96196376bb2e3360f24'/>
<id>urn:sha1:7f418e34078c7f45e389f96196376bb2e3360f24</id>
<content type='text'>
alphabetic one.

PR:		bin/116209
Submitted by:	Marcin Gryszkalis &lt;mg@fork.pl&gt; (adapted from)
Reviewed by:	will
MFC after:	1 week
</content>
</entry>
<entry>
<title>Remove the advertising clause from UCB copyrighted files in usr.bin.  This</title>
<updated>2010-12-11T08:32:16Z</updated>
<author>
<name>Joel Dahl</name>
<email>joel@FreeBSD.org</email>
</author>
<published>2010-12-11T08:32:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=da52b4caaf187775f6b56a72c6b16e94ad728f7b'/>
<id>urn:sha1:da52b4caaf187775f6b56a72c6b16e94ad728f7b</id>
<content type='text'>
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
</content>
</entry>
</feed>
