Chapter 17: Advanced Shell Script Examples

So far, we have done all we could to show you different ways scripts can be written, and we went through a lot of examples of how different tasks can be accomplished. In this chapter, we are going to implement all this in a much more complex way in scripts that can be used in real life.

The scripts we are going to show you in this chapter solve everyday problems for system administrators, from dealing with creating new users to working with virtual machines (VMs). By walking you through these examples, our aim is not only to show you how scripts should work but also what they should look like and how to approach writing them.

In this chapter, we are going to cover the following shell script examples: ...

Get Linux Command Line and Shell Scripting Techniques 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.