RosettaCodeData/Task/Arrays/UNIX-Shell/arrays-3.sh
2023-07-01 13:44:08 -04:00

5 lines
88 B
Bash

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