Each item in the list is an associated array. I'm trying to traverse each key/value from each associated array. Error message I get ... ${!$x[@]}: bad substitution
I tried substituting with backticks and quotations ..
aaList=( aa1 aa2 aa3 )
for x in "${aaList[@]}"
do
for KEY in "${!$x[@]}"; do
echo "$KEY" "${$x[$KEY]}"
done
echo
done
-------------
I tried substituting with backticks and quotations ..
aaList=( aa1 aa2 aa3 )
for x in "${aaList[@]}"
do
for KEY in "${!$x[@]}"; do
echo "$KEY" "${$x[$KEY]}"
done
echo
done
-------------