[comp.sys.mac] Combining Files

pfeifer@vax1.acs.udel.EDU (Mark C Pfeifer) (02/21/89)

Is there a Un*x (tm) script to automatically paste together the
files that are posted in comp.binaries.mac?  If there is, could
someone mail it to me?

					Mark

aberg@math.rutgers.edu (Hans Aberg) (02/21/89)

> Is there a Un*x (tm) script to automatically paste together the
> files that are posted in comp.binaries.mac?  ...

Yes, combhex, listed in the unix directory at sumex-aim.stanford.edu 

Hans Aberg

werner@utastro.UUCP (Werner Uhrig) (02/21/89)

In <2896@udccvax1.acs.udel.EDU> pfeifer@vax1.acs.udel.EDU (Mark Pfeifer) writes:

> Is there a Un*x (tm) script to automatically paste together the
> files that are posted in comp.binaries.mac?  If there is, could
> someone mail it to me?

#
# use: combhex  <names of files containing the hexed sections to be combined>
#

echo "(This file must be converted with BinHex 5.0) "   > $1.hqx
unset noclobber
cat $1.hqx $* |\
        sed -n -e 1p -e '/ /d' -e '/ /d' -e '/^---$/d' -e '/./p' > $1.hqx

-- 
--------------------> PREFERED-RETURN-ADDRESS-FOLLOWS <---------------------
(ARPA)	    werner@rascal.ics.utexas.edu   (Internet: 128.83.144.1)
(INTERNET)     werner%rascal.ics.utexas.edu@cs.utexas.edu
(UUCP)	..!utastro!werner   or  ..!uunet!rascal.ics.utexas.edu!werner