Path: utzoo!attcan!uunet!husc6!mailrus!umix!nancy!eecae!fmsrl7!mibte!gamma!ulysses!thumper!faline!bellcore!djinn!tr From: tr@djinn.bellcore.com (tom reingold) Newsgroups: comp.sys.ibm.pc Subject: Re: GNU awk (gawk) on MS-DOS Summary: I found a trick, though I don't know why it's necessary. Keywords: awk gnu gawk Message-ID: <7444@bellcore.bellcore.com> Date: 17 May 88 12:30:41 GMT References: <1455@titan.camcon.uucp> <11573@ut-sally.UUCP> <2347@rayssd.ray.com> Sender: news@bellcore.bellcore.com Reply-To: tr@djinn.UUCP (tom reingold) Organization: Bellcore, Morristown, Noo Joizy Lines: 25 In article <2347@rayssd.ray.com> trr@rayssd.ray.com (Terry R. Raymond) writes: $ $ I could not give it a script from the command line but it works $ when you put the script in a file and use the -f option. I must $ also say that the script I used was pretty simple. $ $ { print "stuff " $1 " more stuff" } $ $ -- Try leaving a blank after the ending quote on the command line. There must be some bug in the compiler that comiled AWK to require this. For example, awk "{print $1} " And notice you need double quotes, unlike in Unix, where you need single quotes. "Just say NO to empty, dogmatic slogans coined by Nancy Reagan!" Tom Reingold PAPERNET: |INTERNET: tr@bellcore.bellcore.com Bell Communications Research |UUCP-NET: bellcore!tr 445 South St room 2L350 |SOUNDNET: (201) 829-4622 [work], Morristown, NJ 07960-1910 | (201) 287-2345 [home]