gawk64 command trobleshooting

56 Views Asked by At

I am trying to trouble shoot an awk script and having trouble with the gawk64 command.

gawk64 -f awkmakearchive.txt -v SPD=abc.csv -v REF=def.csv ijk.csv

In the awkmakearchive.txt file i am getting syntax error for the following line :

BEGIN {

FS = ","

# Load SPD
spdcount = 0
while (getline < SPD) {
    for (i=0; i<96; i++) {
        Pattern[$1][i] = $(i+2) ----> Syntax error
    }
    spdcount++
}
....
...
}

Please help.

1

There are 1 best solutions below

0
Richa Basak On

Solved! I was using GnuWin32 to run the script instead of GnuWin 64 bit version. GnuWin32 did not have gawk64 in its bin.