[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with win32 version
From: |
Eli Zaretskii |
Subject: |
Re: Problem with win32 version |
Date: |
Fri, 25 Feb 2005 22:14:47 +0200 |
> Date: Fri, 25 Feb 2005 13:43:26 +0100 (CET)
> From: "Patrick Marquetecken" <address@hidden>
> Cc:
>
> C:\Program Files\GnuWin32\bin>gawk -F: '{ print $1 }' c:/etc/passwd
> I get this error
> gawk: cmd. line:1: '{
> gawk: cmd. line:1: ^ invalid char ''' in expression
That's because ' isn't a quote character on Windows, so Gawk gets the
program in 4 separate arguments, not as one argument.
Try
gawk -F: "{ print $1 }" c:/etc/passwd
(i.e., use " for quoting) and I think it should work for you.