RosettaCodeData/Task/Loops-Foreach/UNIX-Shell/loops-foreach-4.sh
Ingy döt Net d066446780 langs a-z
2013-04-10 22:43:41 -07:00

4 lines
118 B
Bash

set -A collection "first" "second" "third" "fourth" "something else"
for x in "${collection[@]}"; do
echo "$x"
done