RosettaCodeData/Task/Loops-Foreach/UNIX-Shell/loops-foreach-4.sh

5 lines
118 B
Bash
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
set -A collection "first" "second" "third" "fourth" "something else"
for x in "${collection[@]}"; do
echo "$x"
done