If you are using the simulated multi-dimensional arrays, your loop would need to be like this:
END {
for (ij in a) {
split(ij,indices,SUBSEP);
i=indices[1];
j=indices[2];
print i,j,a[ij]
}
}
The (i,j) in a
syntax only works for testing whether a particular index is in the array. It doesn't work for for-loops, despite the for-loop allowing a similar syntax.
For the true multi-dimensional arrays (arrays of arrays), you can write it like this:
BEGIN { FS=OFS="" }
{ a[$2+FS+$7][$3]+=$6 }
END {
for (i in a) {
for (j in a[i]) {
print i,j,a[i][j]
}
}
}
However, arrays of arrays was only added in gawk 4.0, so your version of gawk may not support it.
Another note: on this line:
a[$2+FS+$7,$3]+=$6
It seems like you are trying to concatenate $2, FS, and $7, but "+" is for numerical addition, not concatenation. You would need to write it like this:
a[$2 FS $7,$3] += $6
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…