Problem Statement
Which syntax correctly defines a for loop in Bash?
Explanation
Bash loops iterate over lists or sequences using the for-in-do-done structure.
It can also use command substitution like for file in *.log; do echo $file; done.
Code Solution
SolutionRead Only
for i in 1 2 3 4 5; do echo $i done