FILL BLANK -
What keyword is used in a shell script to begin a loop? (Specify one keyword only, without any additional information.)
FILL BLANK -
What keyword is used in a shell script to begin a loop? (Specify one keyword only, without any additional information.)
In a shell script, to begin a loop, you can use either the 'for' or 'while' keyword. Both are valid as they are used to initiate loops under different conditions.
Either "for" or "while" should be valid answers for this question.
while ?
I think they are talking about the general term "loop", a while is a conditional loop
please know the difference of while and for...
to begin a loop is the question so FOR is the correct answer.
for i in {1..5..1} do echo"...................." done exit 0
"without any additional information" --> it is "for", not "while" keyword.
I thought it was while too
The keyword: FOR
is not do? until... do.... done, for ... do.. done, while ... do...done I think is do
for or while