Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!mcsun!unido!sbsvax!wolf From: wolf@fb14vax.sbsvax.uucp (Wolfgang Huwig) Newsgroups: comp.sys.atari.st Subject: Re: Is there a joiner for uuencoded file parts? Message-ID: Date: 16 May 91 16:09:52 GMT References: <1991May14.192458.19903@dvorak.amd.com> Sender: news@sbsvax.cs.uni-sb.de Organization: Universitaet des Saarlandes, Saarbruecken, West Germany. Lines: 30 In-reply-to: bpohl@dvorak.amd.com's message of 14 May 91 19:24:58 GMT 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'm getting tired of it, cutting out the header and comments, etc. I wand >something that will take all the mailed/posted part and make one .uue file I >can send to our VAX for uudecoding (the uudecode on the SUN tends not to work). You can use a simple sed command to do just what you want: cat myfile.u?? | sed /^include/,/^begin/d > myfile.myuue Cat will get the files in alphabetic order, sed strips all the lines between "include myfile..." and "begin part..." (inclusively). The resulting file will still contain the lines before the first "begin..." but uudecode doesn't bother with that. (Be sure to name the resulting file so it doesn't get an argument to cat, too :-) You can set yourself an alias for the command sequence above or make it a shell script. Greetings, Wolfgang -- +-------------------+------------------+-----------------------------+ | Wolfgang Huwig | intelligent | FB 14 Informatik IV | | CS Dept./AI Lab | remark | Universitaet des Saarlandes | | wolf@cs.uni-sb.de | goes here | D-6600 Saarbruecken 11 | +-------------------+------------------+-----------------------------+