RosettaCodeData/Task/Arrays/UNIX-Shell/arrays-3.sh

6 lines
88 B
Bash

x=0
while [[ $x < ${#alist[*]} ]]; do
echo "Item $x = ${alist[$x]}"
: $((x++))
done