for f in *.JPG; do base='basename $f .JPG'; mv $f $base.jpg; done
https://discussions.apple.com/thread/1667375?start=0&tstart=0