I now use my blockets framework for bash scripts. I keep this here as a quick BASH template.
Various utility scripts for getting stuff done.
All the bash scripts use:
*the unofficial bash strict mode- http://redsymbol.net/articles/unofficial-bash-strict-mode/
*getopts - http://wiki.bash-hackers.org/howto/getopts_tutorial?s[]=get&s[]=opt
*color definitions - http://misc.flogisoft.com/bash/tip_colors_and_formatting
template.bash - Basic template to use as a base for bash scripts.