Cornelius19
Technical User
- Mar 9, 2007
- 26
Hi,
I use gawk but need to run an old awk script, written for the tawk compiler ( The syntax is slightly different, for instance, they declare multi-dimensional arrays like this:
This does not compile under gawk, but I can easily convert it to standard awk syntax and it compiles (I hope this is the correct translation):
I could correct most of the errors with such a change. However, there are still a couple of errors I do not know how to correct (basically where the above mentioned tri-dimensional array is used with less than 3 dimensions):
or
Do you have any idea?
Cornelius
I use gawk but need to run an old awk script, written for the tawk compiler ( The syntax is slightly different, for instance, they declare multi-dimensional arrays like this:
Code:
ary[word][dialect][24] = "A";
This does not compile under gawk, but I can easily convert it to standard awk syntax and it compiles (I hope this is the correct translation):
Code:
ary[word,dialect,24] = "A";
I could correct most of the errors with such a change. However, there are still a couple of errors I do not know how to correct (basically where the above mentioned tri-dimensional array is used with less than 3 dimensions):
Code:
for (dialect in ary[word])
or
Code:
if (24 in ary[word,dialect] && substr($0,24,1)!="C")
Do you have any idea?
Cornelius