Shell scripting seems to confuse quite a few people. In concept, it's no different than writing a batch file. In practice, it's merely putting a series of commands into a text file. It can, however, be much more than just a set of commands in a file. A shell script can bring in command-line arguments, just like a regular program. It can request input from a user. It can read from and write to files. Shell scripts can contain complex logic. The limit of what a shell script can do is essentially the limit of the author's imagination and skill.

I've linked to several shell scripting tutorials here. I hope you find them useful.

Hopefully, those four links are enough to get you going. Here are several examples of shell scripts.