Bug 113175

Summary: [patch] add "-n count" option to split(1)
Product: Base System Reporter: jschauma
Component: binAssignee: David Schultz <das>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description jschauma 2007-05-31 03:00:09 UTC
I added a new option to split(1) in NetBSD to allow splitting of a file
into N chunks rather than having to do the math oneselves and then specify
the '-b' option.

See rev1.22 of NetBSD's split.c (rev 1.15 of split.1).

Attached is a completely untested patch that might work for your version
of split.

Hmm, second try.  Attaching the diff didn't work.  Something about wrong
encoding type.  See diff in "Fix".
Comment 1 David Schultz freebsd_committer freebsd_triage 2008-03-16 15:13:44 UTC
Responsible Changed
From-To: freebsd-bugs->das

Over to me
Comment 2 David Schultz freebsd_committer freebsd_triage 2008-03-16 15:15:34 UTC
State Changed
From-To: open->closed

Committed, thanks! 
src/usr.bin/split/split.c,v 1.19 
src/usr.bin/split/split.1,v 1.21
Comment 3 dfilter service freebsd_committer freebsd_triage 2008-03-16 15:15:38 UTC
das         2008-03-16 15:15:32 UTC

  FreeBSD src repository

  Modified files:
    usr.bin/split        split.1 split.c 
  Log:
  Add a -n option to split(1) to split files into N chunks rather than
  having to specify the right number of bytes.
  
  Obtained from:  NetBSD
  Submitted by:   Jan Schaumann <jschauma@netmeister.org>
  PR:             113175
  
  Revision  Changes    Path
  1.22      +9 -1      src/usr.bin/split/split.1
  1.20      +69 -11    src/usr.bin/split/split.c
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"