Bash scripting - Iterating through "variable" variable names for a list of associative arrays
- by user1550254
I've got a variable list of associative arrays that I want to iterate through and retrieve their key/value pairs.
I iterate through a single associative array by listing all its keys and getting the values, ie.
for key in "${!queue1[@]}" do
echo "key : $key"
echo "value : ${queue1[$key]}"
done
The tricky part is that the names of the…