History log of /src/usr.bin/split/split.1 |
Revision | | Date | Author | Comments |
1.17 |
| 14-Feb-2023 |
jschauma | fix synopsis to indicate that options '-l' and '-n' are mutually inclusive
|
1.16 |
| 30-Jan-2023 |
jschauma | auto-extend suffix length if required
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.
|
1.15 |
| 31-May-2007 |
jschauma | Add a new command-line option "-n chunk_count", that splits the input file into chunk_count smaller files. Each file will be size/chunk_count bytes large, with whatever spillover there is ending up in the chunk_counth file.
|
1.14 |
| 24-Dec-2006 |
wiz | Mention that the argument file is not modified. From jmc@openbsd.
|
1.13 |
| 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
|
1.12 |
| 10-Jul-2003 |
bjh21 | Remove the hack that varied the first character of the output filename if a base name wasn't specified. It's not really necessary now that we've got -a, it's ugly, and POSIX doesn't permit it.
Suggested on tech-userlevel a couple of weeks ago to a deafening silence.
|
1.11 |
| 27-Jun-2003 |
bjh21 | Cleanup: Correct synopsis to show that -l and -b are mutually exclusive. Put [k|m] in the right typefaces. Use .Ql for 'k' and 'm' in text. Refer to the option-argument of -l as <line_length> consistently.
|
1.10 |
| 10-Jun-2003 |
bjh21 | From FreeBSD: Allow "-" to be specified as an operand as well as an option. SUSV3 requires something like "split -- -" to work. Document the "-" operand.
|
1.9 |
| 10-Jun-2003 |
bjh21 | Add support for the -a option, which should fix standards/11226. Code from <hiramatu@boreas.dti.ne.jp>, with improvements from me. Manual page updates from FreeBSD.
|
1.8 |
| 08-Dec-2001 |
wiz | Sort sections.
|
1.7 |
| 01-Dec-2001 |
wiz | Whitespace cleanup.
|
1.6 |
| 19-Oct-1997 |
lukem | WARNSify, fix .Nm usage, getopt returns -1 not EOF
|
1.5 |
| 21-Dec-1994 |
jtc | Merged with 4.4lite. Changed to conform to NetBSD's new RCS Id convention.
|
1.4 |
| 01-Apr-1994 |
cgd | man page fix from Mark Weaver
|
1.3 |
| 11-Jan-1994 |
jtc | Fix spelling errors.
|
1.2 |
| 01-Aug-1993 |
mycroft | Add RCS indentifiers.
|
1.1 |
| 21-Mar-1993 |
cgd | branches: 1.1.1; Initial revision
|
1.1.1.2 |
| 21-Dec-1994 |
jtc | imported from 44lite
|
1.1.1.1 |
| 21-Mar-1993 |
cgd | initial import of 386bsd-0.1 sources
|