$ cat 8.sh #!/bin/bash array=(1 2 3) echo "case 1" for line in ${array[@]} do echo $line done $ ./8.sh case 1 1 2 3