Path: utzoo!utgpu!water!watmath!mks!wheels From: wheels@mks.UUCP (Gerry Wheeler) Newsgroups: comp.sys.ibm.pc Subject: Re: GNU awk (gawk) on MS-DOS Summary: using awk on command line with silly command.com ... Keywords: awk gnu gawk Message-ID: <454@mks.UUCP> Date: 20 May 88 20:59:12 GMT References: <1455@titan.camcon.uucp> <11573@ut-sally.UUCP> <2347@rayssd.ray.com> Organization: Mortice Kern Systems, Waterloo, Ont. Lines: 18 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. One of the difficulties we find when people buy our MKS Awk for DOS is that command line programs such as: awk "$3 > 0 {print $0}" somefile will fail because command.com assumes the '>' means you want to do redirection of output. In other reasonable command interpreters, you can hide the '>' from the interpreter by using the quotes. -- Gerry Wheeler Phone: (519)884-2251 Mortice Kern Systems Inc. UUCP: uunet!watmath!mks!wheels 35 King St. North BIX: join mks Waterloo, Ontario N2J 2W9 CompuServe: 73260,1043