If I want a BASH 2D bash array, is there any recommended way of doing this for say, a N x MN x M arrangement? On several occasions, I've had to define array1array1, array2array2, arrayNarrayN each of MM elements in conjunction with case statements - but this is very clumsy.
I realise it would be possible to define a single big array XX and compute a 1-1 map between X[something]X[something] and the [i,j][i,j] element - but this seems like a lot of work to do it properly.
Does there exist any set of functions which could do this reasonably efficiently? I realise its a bit like making BASHBash imitate FORTRAN.