Path: utzoo!utgpu!watserv1!watmath!att!bellcore!bellcore-2!rutgers!uwm.edu!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!emory!hubcap!ncrcae!ncrlnk!ncrwic!encad!enint!gharring From: gharring@enint.Wichita.NCR.COM (Gary Harrington) Newsgroups: comp.binaries.ibm.pc.d Subject: Re: Automated extraction of programs from c.b.i.p postings. Message-ID: <623@enint.Wichita.NCR.COM> Date: 20 Jul 90 15:23:58 GMT References: <5213@castle.ed.ac.uk> <3994@trantor.harris-atd.com> Organization: NCR Corporation, Wichita, KS Lines: 23 >>Does anyone have an automated way of extracting programs from the postings in > . . . the following alias has worked to perfection for me. I have only to >copy all parts of a posting: say > POST1, POST2, POST3 >to a given directory in which NO OTHER FILES RESIDE and then, in >that directory, to issue the command: > massuud >which I have aliased to: >massuud: aliased to cat * | sed /^END/,/^BEGIN/d | uudecode \\\\\\\\\__________________________________________________________///////// ///////// \\\\\\\\\ change this alias to: cat $* | sed '/^END/,/^BEGIN/d' | uudecode and then the postings don't have to be in a directory by themselves. You would concatenate and uudecode them with this command: massuud POST* I call my script file 'catuudec', which seems easier to remember than 'massuud'. --- Gary.Harrington@Wichita.NCR.COM