Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!usc!sdd.hp.com!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!news.funet.fi!tukki.jyu.fi!jyu.fi!otto From: otto@tukki.jyu.fi (Otto J. Makela) Newsgroups: comp.binaries.ibm.pc.d Subject: Re: Why are postings NOT in shar form Message-ID: Date: 4 Dec 90 18:29:01 GMT References: <1717@syteke.be> <3415@ns-mx.uiowa.edu> Sender: news@tukki.jyu.fi (News articles) Organization: Turing Police, Criminal AI section Lines: 15 In-Reply-To: williams@umaxc.weeg.uiowa.edu's message of 4 Dec 90 15:39:23 GMT In article <3415@ns-mx.uiowa.edu> williams@umaxc.weeg.uiowa.edu (Kent Williams) writes: [Script to unpack stuff from c.b.i.p] #!/bin/sh echo unpacking from $* to `grep begin $1` cat $* | sed '/END--/,/BEGIN--/d' | uudecode I already commented to ts@uwasa.fi about the same -- a simpler version is: sed '/END--/,/BEGIN--/d' $* | uudecode Or are there versions of sed for which this doesn't work (perhaps SysV, works on our SunOS 4.1) ? -- /* * * Otto J. Makela * * * * * * * * * * * * * * * * * * */ /* Phone: +358 41 613 847, BBS: +358 41 211 562 (CCITT, Bell 24/12/300) */ /* Mail: Kauppakatu 1 B 18, SF-40100 Jyvaskyla, Finland, EUROPE */ /* * * Computers Rule 01001111 01001011 * * * * * * * * * * * * * * * * */