Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!pasteur!ames!lll-winken!uunet!cadnetix.COM!cadnetix!rusty From: rusty@cadnetix.COM (Rusty) Newsgroups: comp.binaries.ibm.pc.d Subject: Re: Script to use with combine Summary: oops Keywords: bug fix, sorry Message-ID: <7219@cadnetix.COM> Date: 24 Mar 89 18:49:19 GMT References: <12424@watdragon.waterloo.edu> <7203@cadnetix.COM> Sender: news@cadnetix.COM Reply-To: rusty@cadnetix.COM (Rusty) Distribution: na Organization: Cadnetix Corp., Boulder, CO Lines: 28 In article <7203@cadnetix.COM> rusty@cadnetix.COM (Rusty) writes: <<>> > cat ../$SHARC |sed '/^BEGIN/,/^END/d' >>.trashit. Oops. This is NOT the line I was using, I just grabbed it from someone elses 'combine' script they posted. Guess what? That sed script does exactly the opposite of what you want. (The sed command appears 2 times, I think, in the stuff I posted). Here is what you want that line to look like (similar changes need to be made to the other line): cat ../$SHARC |awk '/(^BEGIN)/,/(^END)/ {print}'| \ egrep -v '(^BEGIN)|(^END)' >>.trashit. (this should only be a single line) Sorry about that. Thats what I get for not testing it. The single-file handler (for uuencoded files only) has been added now, and seems to work fine. As soon as I get a shell-archive builder I'll post it to comp.sources.misc. Rahul, should I send it to you, too? ----- Rusty Carruth UUCP:{uunet,boulder}!cadnetix!rusty DOMAIN: rusty@cadnetix.com Cadnetix Corp. (303) 444-8075x241 \ 5775 Flatiron Pkwy. \ Boulder, Co 80301 Radio: N7IKQ 'home': P.O.B. 461 \ Lafayette, CO 80026