O'Reilly logo

Shell Scripting Recipes: A Problem-Solution Approach, Second Edition by Jayant Varma, Chris F. A. Johnson

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 16

image

A Smorgasbord of Scripts

The scripts in this section are varied. Many are responses to questions in Usenet newsgroups, and may solve a very narrow problem. Some are valid for some operating systems but not others. Some scripts use commands that are not always installed (though they are generally available for Unix systems).

It is often easier to write a script for a specific situation than to write a general solution that can be used in many places. While the latter is more efficient, and should be attempted whenever feasible, one shouldn’t rule out the one-time script. Peter Seebach says it well:

A good rule of thumb is to start ...

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