Summary
This chapter covered using shell scripts to solve two problems:
Creating init or startup scripts
Maintaining an address book
In the first example, you learned how the system boots and how scripts are used to streamline this process. In the second example, you developed three scripts that modify and view the contents of an address book. Some of the highlights of these scripts are
The showperson script showed you how the grep and awk commands can be used to format input.
The addperson script showed you how a single script can be used in both interactive and non-interactive modes.
The delperson script showed you how to use the grep command and file descriptors to update a file accurately.
The examples in this chapter demonstrate how you can ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access