I have an awk script with the lines below:
NR==FNR {
if (FNR>1) {
a[$3][++i]=$6
b[$3][i]=$7
}
next
}
When i use the script it says
awk: syntax error at source line 3 source file ../Overlap.awk
context is
>>> a[$3][ <<<
awk: illegal statement at source line 3 source file ../Overlap.awk
The script is copied from a linux machine to MAC OSX and the problem arised. Could someone help to fix this.