greycat 1186432975 learn You can simulate simple 2-dimensional matrices in bash (which only has 1-dimensional arrays) using tricks, like ${array[i*100+j]} (where "100" can be any suitably large constant). greycat 1513364027 forget greycat 1513364028 learn Bash only has 1-dimensional arrays (two kinds), but you can simulate 2-dimensional matrices with tricks. ${array[i*100+j]} (where 100 can be any suitably large constant) with indexed arrays, or ${array["$i,$j"]} with associative arrays.