From: dunbars@spot.Colorado.EDU (DUNBAR STEVEN THOMAS)
Subject: cleave program
Organization: University of Colorado, Boulder
Date: Thu, 27 Aug 1992 02:43:49 GMT

Below is a program that I wrote for splitting apart large
files into smaller files with a constant size.  The driving
force behind this project was the fact that I like to 
archive source files using the floppy drive on my NeXT, 
and very large packages (like GCC 2.2.2 or Mouse X) just
don't fit on one floppy.  I was't satisfied with the split
program supplied with the NeXT because it splits files
based on the number of newlines encountered, so the size 
of the split files is very unpredictable. I checked the
archives and they didn't have a >good< program for doing
this, (at least archie didn't find one.)

If you know of some other news groups (like Unix groups,
I don't read them so I don't know the names of the groups,
but I would post there for distribution purposes) that
might benefit from this program, please email them to
me.  

Please send comments, suggestions to:

dunbars@spot.colorado.edu

regards,

Steve Dunbar

begin 644 cleave.tar.Z
M'YV08]B4"6.GS`L`"!,J7,BPH<.'$"-*G(@0A,4;-6J``&`11`P8&CEV!`%C
MX\B3)"W6D$'C!HP9-6[8L-%Q)8T9'"GJW,FSI\^?0(,*'4JTJ-&C2"4&'%CP
MQ5*"95R,24IU:$<;-&B8M/@QY,F2(D_>B&%#ADJ69&-@K*'5HHT;,VCDK$JW
MKMV[>//JW4MU!)DR9M*X*0-B"),B0:P4^3+$H@(%(P0'K/,7!(\Y=,BD>>,"
MC0_(DME0)GR9CAS!9^9T_AS9S>3*/,+,F5-&#IW5CU^H`$&DB)$D3I)02?+$
MR1004Z`4&9+D=V,J3T!009+D>),G1*H<5@!"Q8O'?@$+)MS;2!#M5+X\J4(%
M"OLOOP]_F9)$2Q&/,F#HUP_Y;^#!(#01!!9?"%&%$484(<5\]=V'TE49P02>
M?^,AEX433T!!WW$B;-&"'5V`X.$<(,R1AAYEA.CA&R"\40<=<+SX16`"A4AC
M&2+T)QZ`BDE!7W$6B?!401ZQ4-@;<.1QVAEHT.%1#CG(8.04=)11D!O2N<!;
M'6Z($88<.2J@6X!!#"'%$\<EMUQS23P7W735!8B==D5PY]V$.Q(FT&RU??&&
M&2B$8:08*8"`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