[comp.binaries.ibm.pc.d] Script to uudecode multiple files

kfink@jarthur.Claremont.EDU (Kevin Fink) (03/03/89)

Here's a script I put together to uudecode multiple files from
comp.binaries.ibm.pc. It needs a file of all the articles, in order, for
that program. In order to do this I use the "| cat >> filename" command in
rn. (Our rn crashes if you try to save over an old file.)

Once you have a file with all the articles, type source combine filename (or
whatever you name the script). It will cut out everything but the good stuff
and then uudecode it.

The script that I use is actually a little different, since I have it move
the file to a directory set aside for sending files to my computer in my
room. When I want to move some files, I go to the directory and have Kermit
send everything at once, so I don't have to worry about typing in another
filename every couple of minutes.

Also, I think there is a way to make this script a permanent file that will
run when you type the filename, but I just started playing around with Unix
and haven't found it yet. I alias 'combine' to 'source combine' in my .cshrc
file.

My next project (when I get another five minute's free time, probably about
June of 1992) will be to add commands to verify the checksums with those in
the article. If somebody else does it first, please send me a copy of the
file.


cat !* | sed '/^BEGIN--cut here--cut here$/,/^END--cut here--cut here$/ w test' >junk
cat test | sed '/^BEGIN--cut here--cut here$/d' | sed '/^END--cut here--cut here$/ d' > !*.xxx
rm test junk
uudecode !*.xxx
rm !*.xxx

Kevin Fink
KFINK@JARTHUR.CLAREMONT.EDU or
KFINK@JARTHUR.UUCP          or
KFINK@HMCVAX.BITNET         or
KFINK@MUDDCS.CLAREMONT.EDU