I am trying to use asort() (simply because) to copy the src array to the dest array, no problem:
$ awk 'BEGIN { split("first;second;third",src,";")
But is there a way to use a multidimensional array as a dest array? Sort of:
asort(src, dest[src[1]], "@ind_num_asc") # or dest[src[1]][]
(The former produces the second argument not an array , the last syntax error In reality, the first argument to split is $0 , and I'm trying to group the records.)
Of course, I could use a for loop, but my brain is stuck in testing this solution.
source share