#!/bin/bash

# This script renames every file which ends in JPG to
# end it jpg.  This was annoying because windows is
# not case sensitive, buy unix it.  Since then, I have
# turned on the mod_speling option (yes, it is spelled
# that way), so the unix server is not case sensitive.

for i in *.JPG ; do
   mv "$i" "${i%%.JPG}.jpg"
done
chmod a-x *.jpg