Mac OS X Unleashed | Automating Tasks with Shell Scripts | InformIT
Note The C shell, csh, and the Bourne shell, sh, are probably the best shells for you to write shell scripts in. Some shells offer somewhat more power in their scripting ability, but csh and sh are the only shells that can be considered ubiquitous. This m...