Howto change the extension of multiple files

This happens to me when I'm importing photographs, I end up with files called .JPG or .jpeg and I prefer .jpg.

for file in *.JPG
  mv $file `basename $file .JPG`.jpg

The command rename does this same thing nicely, but knowing the for loop way can be more useful sometimes...and if you didn't know about rename, then I guess that would be useful too.
rename .JPG .jpg *.JPG

About the Author...

Slides from LISA 2019 Linux systems troubleshooting #LISA2019 Tue Oct 29 05:59:30 +0000 2019 configuring grub2 with EFI Fri Sep 13 05:20:01 +0000 2019

I published a Thing on @thingiverse! #thingalert Tue Jul 23 19:27:57 +0000 2019

Nokogiri install on MacOSX Fri Jul 12 15:06:49 +0000 2019

HTML email with plain mailer plugin on Jenkins Thu Jul 11 21:07:25 +0000 2019