Path: utzoo!attcan!uunet!aplcen!uakari.primate.wisc.edu!sdd.hp.com!ucsd!helios.ee.lbl.gov!nosc!logicon.com!trantor.harris-atd.com!charybdis!sonny From: sonny@charybdis.harris-atd.com (Bob Davis) Newsgroups: comp.binaries.ibm.pc.d Subject: Re: Automated extraction of programs from c.b.i.p postings. Message-ID: <4006@trantor.harris-atd.com> Date: 20 Jul 90 17:46:34 GMT References: <5213@castle.ed.ac.uk> <3994@trantor.harris-atd.com> <397@philpav.UUCP> Sender: news@trantor.harris-atd.com Reply-To: sonny@trantor.harris-atd.com (Bob Davis) Organization: Advanced Technology Dept., Harris Corp., Melbourne, Fl. Lines: 30 X-Local-Date: 20 Jul 90 10:46:34 PDT In article <397@philpav.UUCP> rzi@philpav.UUCP (Roman Zielinski) writes: >In article <3994@trantor.harris-atd.com>, sonny@charybdis.harris-atd.com (Bob Davis) writes: >> In article <5213@castle.ed.ac.uk> elee24@castle.ed.ac.uk (H Bruce) writes: >> >Does anyone have an automated way of extracting programs from the postings in >> massuud: aliased to cat * | sed /^END/,/^BEGIN/d | uudecode > Yes, it's fine but what about the posting garbage in the > beginning and at the end of the messages? PERHAPS your uudecode works differently, but mine strips the stuff before the first BEGIN as well as after the last END (which is all the header and trailer stuff which remains after the script above is run). SO, this causes my uudecode no problem. Therefore, I did not have to include the additional features incorporated into your suggested script (shown below). Is this not the typical way that uudecode works? YOUR SCRIPT: > The following command string removes also text up to the first > BEGIN and after END > >cat * | sed /^END/,/^BEGIN/d | sed 1,/^BEGIN/d | sed /^END/,\$\d | uudecode -Peace... ______________________________________________________________________________ Bob Davis \\ INTERNET : sonny@trantor.harris-atd.com | _ _ | Harris Corporation, ESS \\ UUCP : ...!uunet!x102a!trantor!sonny |_| |_| | | Advanced Technology Dept.\\ AETHER : K4VNO |==============|_/\/\/\|_| PO Box 37, MS 3A/1912 \\ VOICE : (407) 727-5886 | I SPEAK ONLY | |_| |_| | Melbourne, FL 32902 \\ FAX : (407) 729-2537 | FOR MYSELF. |_________|