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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.