Mastering Unix Shell Scripting
Randal K. Michael
Wiley
Provides readers with end-to-end shell scripts that can be used to automate repetitive tasks and solve real-world system administration problems.  Targets the specific command structure for four popular UNIX systems: Solaris, Linux, AIX, and HP-UX.  Illustrates dozens of example tasks, presenting the proper command syntax and analyzing the performance gain or loss using various control structure techniques.