Here is an awesome shell scripting tutorial from Nixcraft.

Enjoy!