RosettaCodeData/Task/Loops-Foreach/UNIX-Shell/loops-foreach-4.sh
2023-07-01 13:44:08 -04:00

4 lines
118 B
Bash

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