Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 10. Looping facilities > Looping facilities in the Shell and Perl

10.1. Looping facilities in the Shell and Perl

Loops are generally classified according to whether they iterate over a list of items, or until a condition produces a True (or False) value. For loops of the second type, an additional distinction is whether the condition is tested before or after the code block has been executed (i.e., top- or bottom-tested).

The Unix shells offer three kinds of loops:


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint