Cornelius19
Technical User
- Mar 9, 2007
- 26
Hi,
I need to run an awk script written by someone else seven years ago and probably working fine in that configuration. Now I receive six "syntax error" messages (no other errors), the first two are:
awk: iprjen.awk:72: aFtagHierarchy[$1][
awk: iprjen.awk:72: ^ syntax error
awk: iprjen.awk:275: is_not_baseform = aFtagHierarchy[bfpos][featag]
awk: iprjen.awk:275: ^ syntax error
Here are the corresponding lines in the awk file:
lines 71-73 (in the BEGIN section):
lines 273-278 (in a user defined function):
Do you have any idea what is wrong? I use gawk 3.1.5 (under cygwin).
Thanks,
Cornelius
I need to run an awk script written by someone else seven years ago and probably working fine in that configuration. Now I receive six "syntax error" messages (no other errors), the first two are:
awk: iprjen.awk:72: aFtagHierarchy[$1][
awk: iprjen.awk:72: ^ syntax error
awk: iprjen.awk:275: is_not_baseform = aFtagHierarchy[bfpos][featag]
awk: iprjen.awk:275: ^ syntax error
Here are the corresponding lines in the awk file:
lines 71-73 (in the BEGIN section):
Code:
else {
aFtagHierarchy[$1][$2] = $3;
}
lines 273-278 (in a user defined function):
Code:
else
{
is_not_baseform = aFtagHierarchy[bfpos][featag]
if ( is_not_baseform == "" )
is_not_baseform = "9";
}
Do you have any idea what is wrong? I use gawk 3.1.5 (under cygwin).
Thanks,
Cornelius