Shell scripts are the Unix way to automate and batch process things. There exist many different shells like sh, bash, tcsh, korn csh etc. I prefere bash that comes standard in both Mac OS X, Debian GNU/Linux and most other Linux distributions
Here are a collection of bash scripts that I, Fredrik Jonsson, have made or modified.
More information can be found here: