Элементы печати Bash в массиве

for i in ${!myArray[@]}; do
  echo "element $i is ${myArray[$i]}"
done
Jefferson Magcuro