Chapter 19

An Introduction to Automation with Bash Shell Scripting

The following topics are covered in this chapter:

The following RHCSA exam objectives are covered in this chapter:

  • Conditionally execute code (use of if, test, [], etc.)

  • Using Looping constructs (for, etc.) to process file and command line input

  • Process script inputs ($1, $2, etc.)

  • Process output of shell commands within a script

Shell scripting is a science all by itself. You do not learn about all the nuts and bolts related to this science in this chapter, however. Instead, you learn how to apply basic shell scripting elements, which allows you to write a simple shell script and ...

Get Red Hat RHCSA 9 Cert Guide: EX200 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.