Bash -Skript -Print -Array -Elemente Index und Wert

for i in "${!foo[@]}"; do 
  printf "%s\t%s\n" "$i" "${foo[$i]}"
done
Brian Patterson