Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!ucla-cs!ucla-se!crowe!plinio From: plinio@crowe.seas.ucla.edu (Plinio Barbeito) Newsgroups: comp.sys.atari.st Subject: Re: Is there a joiner for uuencoded file parts? Summary: yes, here's mine Message-ID: <2761@lee.SEAS.UCLA.EDU> Date: 15 May 91 07:17:21 GMT References: <1991May14.192458.19903@dvorak.amd.com> Sender: news@SEAS.UCLA.EDU Organization: SEASnet, University of California, Los Angeles Lines: 49 In article <1991May14.192458.19903@dvorak.amd.com> bpohl@dvorak.amd.com (Bion Pohl) writes: > > Is there a parts joining script for rejoining the parts of a uuencoded >binary or source file before uudecoding? I've just been doing it by hand and I've been using the awk script that follows on our Unix systems successfully for quite a while. If you run it on a file that has all the parts of a distribution in it in numerical order, it'll strip the extraneous stuff out of it and output a file suitable for uudecoding. To use it, you can paste it into a file called 'stripuue.awk', copy it into your News directory, and add this line to your .cshrc: alias strip 'awk -f ~/News/stripuue.awk' (To be able to use the shell alias immediately, type "source .cshrc" at the csh prompt.) Thereafter, when you save a set of binaries/sources with the 's' command, you can use the same filename for each to effectively concatenate all the parts into one file (but make sure they are cat'ed in the correct order...sometimes part03 comes before part02, etc.) Then you can just type something like: strip filename > stripped.filename and you should be able to uudecode the "stripped.filename" at that point without problems. 'stripuue.awk' follows: -------Delete everything above this line, inclusive---------------- BEGIN { mode=0 } $1!="table" && mode==0 { } $1=="table" && mode==0 { mode=1; print $0 } mode==1 && $1!="table" && $1!="include" { print $0 } $1=="include" && mode==1 { mode=2; } $1=="include" && mode==0 { mode=2; } $1=="begin" && mode==2 { mode=1 } -------Delete everything below this line, inclusive---------------- plin -- To mak wridin mo eficiend, i sujes de folouin janjs: drop deleder 'c', as 'k' uil do jus fin. gt rid of endn 'e', sins ids nevr pronncd aniuai. als, 't' is nevr nedd; us 'd'. repeddv knsnnds shd b nls bpp ngbbl rr...01011101