[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New Gawk User
From: |
Kees Zeelenberg |
Subject: |
Re: New Gawk User |
Date: |
Tue, 16 Feb 2010 00:36:15 -0800 (PST) |
Bob Proulx wrote:
> The problem is that you are using the MS-Windows command.com command
> line but trying to use Unix shell style quoting. On your command line
> you need to use double quotes instead of single quotes. I don't have
> an MS-Windows machine to test this on but I would guess you would need
> to do something like this using double quotes instead.
>
> gawk "{ print $1 }" list
>
> Bob
This is correct. On MS-Windows, double quotes should be used. See
http://gnuwin32.sourceforge.net/install.html, under Filename globbing and
quoted arguments
In the second example, /etc/passwd does not normally exist on MS-Windows,
but it is perfectly legitimate to create such a directory and file at the
root of the current drive, and then gawk will find it.
-kz
--
View this message in context:
http://old.nabble.com/New-Gawk-User-tp27586849p27605024.html
Sent from the Gnu - Utils - Bugs mailing list archive at Nabble.com.