summaryrefslogtreecommitdiffstats
path: root/usr.bin/split/split.c
Commit message (Collapse)AuthorAgeFilesLines
* Add a -n option to split(1) to split files into N chunks rather thandas2008-03-161-11/+69
| | | | | | | | having to specify the right number of bytes. Obtained from: NetBSD Submitted by: Jan Schaumann <jschauma@netmeister.org> PR: 113175
* Add support for splitting at gigabyte boundaries. [1]keramida2006-08-101-5/+6
| | | | | | | | | | | | | | 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
* Update usage & SYNOPSIS and clarify that input files are not removed.keramida2006-08-081-8/+8
| | | | | | | | | | | 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
* Remove undocumented historic support for treating "-" as an optiontjr2005-08-301-14/+8
| | | | instead of a file operand; this is not compatible with POSIX.
* Remove the hack that varied the first character of the output file nametjr2005-08-211-10/+2
| | | | | | | | 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)
* Respect locale settings from the environment.tjr2004-07-111-0/+3
|
* Support larger files (at least 64-bit offsets) by using off_t instead oftjr2002-07-151-8/+21
| | | | int to store offsets.
* Remove <sys/types> where we use <sys/param> already.jmallett2002-06-151-8/+5
| | | | protoize.
* Allow "-" to be specified as an operand as well as an option.tjr2002-05-271-1/+3
| | | | SUSV3 requires something like "split -- -" to work. Document the "-" operand.
* Avoid overflowing `fname' if the file name prefix given on the commandtjr2002-05-271-1/+2
| | | | | | line is too long. Obtained from: OpenBSD
* remove __Pimp2002-03-221-4/+4
|
* Add -a option (SUSv3) to split(1).mike2002-02-011-7/+31
| | | | | Submitted by: Tim J. Robbins <tim@robbins.dropbear.id.au> MFC after: 1 month
* WARNS=2 fixes, use __FBSDID, remove GCC-specific flags.markm2001-12-121-11/+10
|
* Add/fix the ability to split a file larger than 2 gigabytes.jwd2000-11-191-4/+6
| | | | | | | | Added $FreeBSD tag (in the way the already present sccsid is done). I've been told the rcsid stuff may be of dubious value so I'm curious to know if folks (still) use it. Submitted by: Brad Chisholm <blc@bsdwins.com>
* Print usage via fprintf(stderr, ..) instead of errx() to avoid progname prefix.archie1999-02-051-2/+3
| | | | Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
* Add new option '-p pattern' for splitting files based on matching lines inarchie1999-02-011-52/+77
| | | | | | 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
* Cosmetic in err() string.charnier1997-08-111-9/+10
|
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-1/+1
| | | | posix standard on the topic.
* This fixes 'split -l NNN foo'. As it stands split willrgrimes1995-07-071-1/+1
| | | | | | | | | | complain about an 'illegal line count' becuase it's looking at the wrong end pointer (ep) to detect any extra characters after the NNN. Submitted by: Rich Murphey <rich@freebsd.org> This should probably get pulled into 2.0.6 and 2.1.0
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+288
OpenPOWER on IntegriCloud