Path: utzoo!attcan!utgpu!watmath!att!pacbell!ames!apple!sun-barr!cs.utexas.edu!csd4.milw.wisc.edu!srcsip!falcon!rogers From: rogers@falcon.SRC.Honeywell.COM (Brynn Rogers) Newsgroups: comp.binaries.ibm.pc.d Subject: Combine script (was Re: More silence in comp.binaries.ibm.pc) Summary: An even better way Message-ID: <26918@srcsip.UUCP> Date: 2 Aug 89 18:10:39 GMT References: <8472@bsu-cs.bsu.edu> <2487@astroatc.UUCP> Sender: news@src.honeywell.COM Reply-To: rogers@src.honeywell.com (Brynn Rogers) Organization: Honeywell Systems & Research Center Lines: 50 In article <2487@astroatc.UUCP> brown@astroatc.UUCP (Vidiot) writes: >Since when has the combine script become "lazy"? A long time ago a better >combine script was posted. It works much nicer, especially on programs with >MANY parts. Who wants to type in the names of all 11 pieces :-) So, attached >below is the original, longer, better script: [script omitted] >The syntax is simple. One saves the files as program_name.sequence_number, >ie, part.1 part.2 part.3 ... When one is ready to combine the pieces, >one says: > combine part 3 >The script will then put all the pieces into a .temp file and then sed it >into a .uue file. After I recently learned how to use rn properly, I find this to be the easiest and fastest way: Let Comp.binaries.ibm.pc fill up with good stuff in rn: g comp.binaries.ibm.pc (or just let it come up by itself) = (displays all subject lines and article numbers) 1802: Biff part01/5 ( this is an example of what it said ) 1803: Biff part02/5 1804: Biff part03/5 1805: Biff part04/5 1806: Biff part05/5 Read this article [ynq]: ( approximation of what it really asks here) to which I reply: 180[2-6]s~/biff (saves all the parts to one file, useing standerd ) and it says: (C regexp notation to identify which articles) article 1802 saved to file /n/orion/mnt1/users/rogers/biff article 1803 appended to file /n/orion/mnt1/users/rogers/biff article 1804 appended to file /n/orion/mnt1/users/rogers/biff article 1805 appended to file /n/orion/mnt1/users/rogers/biff article 1806 appended to file /n/orion/mnt1/users/rogers/biff then I just quit rn and type combine biff and it makes me the whatever.zoo file this is my combine script, practically identical to the new and improved combine script. #! /bin/csh -f cat $* | sed '/^END/,/^BEGIN/d'| uudec Note that with this combine script (which I think is actually identical to the official one, except it uses csh and uudec instead of sh and uudecode) there is no need to save to many different file names and count files. I used to combine all the files manually in emacs, but this is much better. Brynn Rogers Honeywell S&RC rogers@src.honeywell.com 612-782-7737 use this address if your reply bounces