Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!portal!cup.portal.com!MJB From: MJB@cup.portal.com (Martin J Brown-Jr) Newsgroups: comp.unix.questions Subject: Re: PolyAwk - AWK question Message-ID: <17978@cup.portal.com> Date: 5 May 89 07:16:37 GMT References: <17886@cup.portal.com> <11085@bloom-beacon.MIT.EDU> Organization: The Portal System (TM) Lines: 13 As Jonathan Kamens pointed out, I needed to move the single quote inside of the file to be read in the following line of INCORRECT "code": awk '$0 !~ /Command:*/ { print $0 >"d:foo" } "d:sourcefile"' ( the ' ( the ' should be after >"d:foo" }' ( the ' should be after >"d:foo" }' in the above code. Thanx to all who helped me with this. No more net bandwidth need be expended on this problem. Problem solved. - MJB -