Automating Repetitive Tasks

In the previous chapter, you learned about using decision making in scripts by working with Test, if-else, and switching case. You also learned how to implement simple menus with select.

In this chapter, we will cover the following topics:

  • Working with the for loop
  • Working with the while loop
  • Controlling loops:
    • The continue statement
    • The break statement

Get Learning Linux Shell Scripting - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.