Maybe you could start by looking at those links.
I like this really short tutorial on how to do some simple bash scripting. This may help getting you started or explaining a few simple concepts differently than the other post.
Here's another more extensive tutorial for beginners:
A quick guide:
Slightly more extensive beginners handbook on shell/bash:
If you're not familiar with the command line then a good place to start is:
Then head on over to:
for a more thorough look at scripting.