Using bash, I try to figure out how to fill a bidimentional array from the output of a curl command. 2 columns, but the number of line(s) is unknown. Let's say I get names and phone numbers separated by a space.
$ curl ${url}
Aname 000001
Bname 123456
CCname 000887
Dnname 354632
Xname 007008
...
All kind of help is welcome :) Thanks.
[CCname]="000887"And using the solution found below to create an associative array. bash-associative-array-with-command-output