[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gawk bug
From: |
Bob Proulx |
Subject: |
Re: gawk bug |
Date: |
Wed, 26 Oct 2005 22:24:50 -0600 |
User-agent: |
Mutt/1.5.9i |
Simon H. Charbel wrote:
> Thank you for you reply, it is like windows didn't understood the
> command (as always) and still consider "test" as a variable and not a
> word to print. If you have any other solution, please send.
I believe that with MS-Windows your best path would be to install the
Cygwin environment. Cygwin tries hard to provide a standard POSIX
environment on that platform.
http://www.cygwin.com
Second best would be to place your awk script in a file by itself and
to pass this as an option to awk. As I recall it is common to create
a .bat script of the command name and have it call awk and the awk
script.
File script.awk:
{
print "test"
}
New command line:
awk -f script.awk
This way quoting problems are completely avoided.
Bob