ExamGecko
Question list
Search
Search

Question 66 - 010-160 discussion

Report
Export

Which of the following examples shows the general structure of a for loop in a shell script?

A.
for *.txt as file => echo $file
Answers
A.
for *.txt as file => echo $file
B.
for *.txt ( echo $i )
Answers
B.
for *.txt ( echo $i )
C.
for file in *.txt do echo $idone
Answers
C.
for file in *.txt do echo $idone
D.
for ls *.txt exec {} \;
Answers
D.
for ls *.txt exec {} \;
E.
foreach @{file} { echo $i}
Answers
E.
foreach @{file} { echo $i}
Suggested answer: C
asked 18/09/2024
Lucia Montero Tejeda
37 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first