mj@myrias.UUCP (Michal Jaegermann) (03/03/89)
For all of you who never seen Dumas uuencode/decode. Here is a simple shell script which will unpack such multiple-parts postings. Works on UN*X and should be easily adaptable to MINIX as well. If you saved files as part.01, part.02,...,part.0n then use the sript below as follows: uustrip part* and it will do the rest. Of course you may type all needed file names explicitely :-) #!/bin/csh # # uustrip - uudecode multiple part postings # will create a file named x.uue - ensure that you are # not going to clobber anything important!!! # # Michal Jaegermann - MRC, Edmonton, Alberta, CANADA # echo 'processing' $argv[1] sed -e '/^begin/,$\!d' -e '/^include/,$d' $argv[1] >x.uue foreach file ($argv[2-$#argv]) echo 'processing' $file sed -e '1,/^begin/d' -e '/^include/,$d' $file >>x.uue end echo 'uudecoding x.uue' uudecode x.uue exit A complaint 'no end' when uudecoding a recent posting by Howard Johnson was caused by ctrl-M which was hanging from 'end' line (and every other line as well). File transfer programs are usually stripping that for you, but this one was apparently forgetful. DIY to restore sanity :-) - or slightly modify the script above. Michal Jaegermann Myrias Research Corporation Edmonton, Alberta, CANADA ...{alberta, ncc}!myrias!mj