Chapter 3. Using Loops and the sleep Command
This chapter shows how to use loops to perform iterative operations. It also shows how to create a delay in a script. The reader will learn how to use loops and the sleep command in a script.
Topics covered in this chapter are as follows:
Standard
for
,while
, anduntil
loops.Nesting of loops, and how not to get confused.
Introduce the
sleep
command and how it is used to cause a delay in a script.Go over a common pitfall of using
sleep
.