Skip to content
RED SAGSkills
hard20 pts · first answer countslinuxbash

Looping over an array safely

files=("a b.log" "c.log"). How many times does each loop run?

for f in ${files[@]}; do echo "$f"; done    # loop A
for f in "${files[@]}"; do echo "$f"; done  # loop B
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions