2009/12/16 Hadley Rich <[email protected]> > On Wed, 2009-12-16 at 17:15 +1300, [email protected] wrote: > > I've got around 1700+ images that are a mixture of .jpg and .JPG > > extensions and they are for a number of online slideshows now I need to > do > > a batch rename on the extensions so they are all in lower case, leaving > > the rest of the file name intact. I've come across a few Perl scripts in > > my search, but I'm not familar with Perl so would rather use something > I'm > > more familar with such as Bash. Anyone know any either Bash script-foo or > > a nice gui interface I can achieve this with? > > Easy way; > > rename 'y/A-Z/a-z/' * > > hads >
no, No, NO! If my understanding of the man page is correct, that will change the whole of the file name to lower-case. He wants only the extension changed. Use Steve's method. Test it using echo instead of mv, and then use the --verbose flag so you can see what's going on. Take note that the behaviour might not be quite what you expect if the pwd is different from the directory containg the files. I'm not certain. Check it at the echo stage. -- Sincerely etc. Christopher Sawtell
