O'Reilly logo

A Practical Guide to Red Hat® Linux® 8 by Mark G. Sobell

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 13. Programming the Bourne Again Shell

IN THIS CHAPTER

Control Structures

Expanding Null or Unset Variables

String Pattern Matching

Filename Generation

Builtins

Functions

Chapter 12 explained more about the shells, particularly the Bourne Again Shell. This chapter introduces additional commands, builtins, and concepts that carry shell programming to a point where it can be useful. The first programming constructs covered are control structures, or control flow constructs. These structures allow you to write scripts that can loop over command line arguments, make decisions based on the value of a variable, set up menus, and more. The Bourne Again Shell uses the same constructs found in such high-level programming languages as C.

This chapter ...

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