while loop
You can also use looping control structures within a shell script. Looping structures come in three varieties: the while loop, the until loop, and the for loop.
A while loop executes over and over until specified condition is no longer true. The structure of a while loop is as follows:
while condition
do
script commands
done
A while loop will keep processing over and over and over until the condition evaluates to false.
LX0-104 Exam Objectives (F)
No comments:
Post a Comment