Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!philpav!rzi From: rzi@philpav.UUCP (Roman Zielinski) Newsgroups: comp.binaries.ibm.pc.d Subject: Re: Automated extraction of programs from c.b.i.p postings. Summary: a little better extraction.... Message-ID: <397@philpav.UUCP> Date: 19 Jul 90 15:20:25 GMT References: <5213@castle.ed.ac.uk> <3994@trantor.harris-atd.com> Organization: Philips TDS, Stockholm, Sweden Lines: 31 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 > >comp.binaries.ibm.pc ? > massuud > > which I have aliased to: > > 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? 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 (/^END/,$d must be spelled /^END/,\$\d to avoid shell interpretation of $d) R. +---------------------------------+-------------------------------------------+ ! Roman M. Zielinski ! + + + + + + + + + + + + + + + + + + + + + ! ! Philips Tele & Data System AB +-------------------------------------------+ ! S-115 84 Stockholm, Sweden ! OS/2? Que? ! ! tel +46 8 782 1373 ! PS/2? Que? ! +---------------------------------+-------------------------------------------+ ! NET ADDR: uunet!mcsun!sunic!philpav!rzi ! +---------------------------------+-------------------------------------------+