Try our RSS feed

Unix Review > Archives > 2005 > May 2005
Print-Friendly Version

UnixReview.com
May 2005

Book Review: Classic Shell Scripting

Reviewed by Peter H. Salus

Classic Shell Scripting
Arnold Robbins & Nelson H.F. Beebe
O'Reilly & Associates, 2005
ISBN 0596005954
534 pages

If you program on a Unix box or a Linux box, you use the shell. It doesn't matter whether it's sh, csh, ksh, bash, or... You use the shell. And, in all likelihood, if you use the shell, you use scripts.

Robbins and Beebe have produced a book that is really good in a variety of ways: it is well-written; it is well-organized; it is full of worthwhile examples and instances; and the code is lucid and clear.

For those of you puzzled about all this, let me point out that languages like C, C++ and Java are compiled — the source code is translated into object code and then executed. Scripting languages (like awk, Perl, Python, and Ruby) are interpreted. Compiled languages are convenient; scripting languages work at a higher level.

And, because every type of Unix and Linux has a shell, shell scripts are portable to a very, very large extent. Moreover, scripts save time and effort; and shell scripts save work across platforms.

Robbins and Beebe have organized Classic Shell Scripting into 15 chapters:

  1. Background
  2. Getting Started
  3. Searching and Substitutions
  4. Text Processing Tools
  5. Pipelines Can Do Amazing things
  6. Variables, Making Decisions, and Repeating Actions
  7. Input and Output...
  8. Production Scripts
  9. Enough awk to be Dangerous
  10. Working with Files
  11. Extended Example: Merging User Databases
  12. Spellchecking
  13. Processes
  14. Shell Portability Issues ...
  15. Secure Shell Scripts ...
There are also three Appendices; a Bibliography; a Glossary; and an elaborate Index.

I've been using a number of flavors of Unix and Linux for more than 25 years. I learned a lot from this book. I enjoyed the chapter on Text Processing Tools a great deal, and I worked my way through the Spellchecking chapter. (As Robbins and Beebe state, every OS has a spellchecker built in, but you can learn a lot by constructing one. I did.)

This is an excellent book. Buy it now!

Sys Admin Spotlight

New Products
New Products

CMP DevNet Spotlight

10 Outsourcing Antipatterns
It's deceptively easy to farm out IT work. Here are some worst practices that guarantee your time and money won't be well spent. But if you cared about that, you wouldn't be reading this, right?

In the News

Stealth Mode: Scammers And Hackers Hide Malicious JavaScript On Web Sites
Hackers and scammers have suddenly turned to a new technique to hide malicious JavaScript on compromised or criminal sites, and it is spreading fast.


Monster Job Study: Major Metros Are Where IT's At
Online job recruitment continues to show strength in major metropolitan areas despite a struggling economy and a slight decline nationally.


Snort Exploit Close At Hand
Security researchers say it is imperative that users patch or apply a work-around for a intrusion detection system vulnerability announced earlier this week.


N.Y. Attorney General Targets Adware And Fradulent Web Sites
New York State Attorney General Eliot Spitzer announced a double dose of legal action targeting both adware and Web sites accused of charity, mortgage, and marketing scams.


To Open-Source Or Go Proprietary: That Is Europe's Question
With a study noting the gains of open-source software over proprietary Microsoft software reverberating throughout Europe this week, a new software industry alliance pledging cooperation among its members was launched Thursday.


Crisis Management: Dealing With Data Theft
What if the worst happens and your customers' data is stolen or goes missing? Take a few tips from the financial services industry, which is fast making an art form out of dealing with security breaches.


SafeGuard Solution Helps Protect BlackBerry Users
SafeGuard Solution Helps Protect BlackBerry Users


Newsletter

Subscribe to the UnixReview Newsletter

Subscribe to Sys Admin

Subscribe to THE journal for UNIX systems administrators. Receive 45% off your subscription by following the link below:

CD-ROM

Sys Admin and The Perl Journal CD-ROM version 10.0

Version 10.0 delivers every issue of Sys Admin from 1992 through 2004 and every issue of The Perl Journal from 1996-2002 in one convenient CD-ROM!

Order now!




MarketPlace

Complete Source for Embedded Linux Developers
On-demand resource for easily customizing Linux for your project. 500+ cross-compiled packages, latest processor-optimized Linux from Freescale, Intel, MIPS and ARM; Eclipse-based development and test tools

Industrial grade, real-time Linux data management
McObjects eXtremeDB is the tiny-footprint, in-memory embedded database thats proven, rugged and fast on real-time Linux. Source code is available, check out XML and High Availability support! Download a free trial.

File replication and content synchronization
One-to-one, scheduled file replication and content synchronization for cross platform replication on Windows, UNIX, Linux, HP and more.

UNIX and Linux Performance Tuning Simplified
SarCheck is a UNIX performance analysis and tuning tool for most UNIX and Linux systems. It produces recommendations and explanations, complete with supporting graphs and tables. Get the most from your hardware by keeping your systems tuned.

Wanna see your ad here?

Free Unix Spec BookManage IT with less effort. Go!Get to root cause faster. Troubleshoot with ease.Get better mainframe performance. Go!