Question: In order to write a script that iterates through the files in a directory, which of the following could you use?
- `bash for i in $(ls); do ... done`
- `bash for $(ls); do ... done`
- `bash for i in $ls; do ... done`
- `bash for $ls; do ... done`
Answer: The correct answer of the above question is Option A:`bash for i in $(ls); do ... done`