I use these scripts every day, they might be useful to others. They might even be useful templates for how to write a decent bash script!! You can download them individually by clicking on the links or you can download this tarball to get them all. Install them somewhere on your path - I use
~/bin. All my scripts honour the -h, –help options.
These are used in my other scripts
bh-stdlib - generic functions