O'Reilly logo

Linux and Unix Shell Programming by David Tansley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 18. Control flow structures

All functional scripts need to have the ability to make decisions. They must also be able to process lists based on certain conditions. That’s what this chapter is all about; the building and implementation of control structures in scripts.

In this chapter we will cover:

  • exit statuses;

  • the while, for and until loops;

  • if then else statements;

  • making decisions in scripts; and

  • menus.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required