Here's a couple places to get started:

http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html
http://bashscripts.org/