RosettaCodeData/Task/Arrays/UNIX-Shell/arrays-3.sh
Ingy döt Net d066446780 langs a-z
2013-04-10 22:43:41 -07:00

5 lines
88 B
Bash

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