This is close, but I'm having trouble referencing the second array in my loop. What should the syntax look like? $item is returning "1" instead of "a,b,c or d"
colors=( teal purple pink red green darkblue skyblue )
teal=( a b c d )
for color in ${colors[@]}
do
echo $color
for item in ${#{$color}[@]}
do
echo $item
done
done