Chapter 8. Programming the Bourne Shell

Programming the Bourne Shell

Introduction

Shell programs are usually called shell scripts. Now that you have learned how to use the shell interactively, you are ready to start scripting using what you have learned in addition to the programming constructs provided in this chapter. It doesn't matter whether you are a system administrator, a programmer, or a user. Shell scripts can automate a number of routine tasks to make life a lot easier—and they are fun to write and use!

The Steps in Creating a Shell Script

A shell script is normally written in an editor and consists of commands interspersed with comments. Comments are preceded by a pound ...

Get UNIX® Shells by Example Fourth 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.