The 'Shell Scripting Primer' from Apple is also a good resource. https://developer.apple.com/library/mac/documentation/OpenSource/Conceptual/ShellScripting/Introduction/Introduction.html -- Björn Heidotting