Just a couple of tips for shell script newbies ...
You can make a script executable so that you don't have to use sh to run it. In otherwords, you can just type "myscript" instead of "sh myscript". This also allows you to drop the script into any directory in your path and run it with a single command.
First, make the first line of your script (type it exactly as follows):
#!/bin/sh
Once your script is created, make it executable:
chmod a+x myscript
Thats it. Have fun. BTW, you don't need to run out to the bookstore to get more information, just go to Yahoo and search for "bash shell tutorial", there should be plenty to get you started.