Shell Portable An Programming must go on
A great book for learning shell scripting. It starts out with general syntax but then the rest of the book in filled with micro examples of things you need to write scripts, like input, output, prompting, changing case, manipulating strings, parsing and extracting data, finding file sizes, checking free space, setting screen echo on/off, read with a timeout, text substitution, doing math, here files, etc. There are also sections on portability, debugging, and common problems. I am very happy with this book and use it often when I am scripting.
Portable Shell Programming An