Loops in shell scripts
|
With loops, you can execute part of a shell script over and over until an ending condition terminates it. You can use loops in menu controls and data processing. Without loops, you would need to start the scripts every time you wanted to process a piece of data.
Building Loops
A loop begins with for , while , or until (the loop header). After that follows a do statement that ends with done . Between do and done are the statements to execute (the loop body):
for / while / until [LOOP HEADER] do [commands] [LOOP BODY] done
[...]
Use Express-Checkout link below to read the full article (PDF).
Buy this article as PDF
Express-Checkout as PDF
Pages: 5
Price $0.99
(incl. VAT)
(incl. VAT)