I have finally managed to get my one liner bash script to work, and I
have now put it on the Wiki. So if you need to 'magic'ally correct some
file names that have incorrect file extensions ...
http://www.hantslug.org.uk/cgi-bin/wiki.pl?LinuxHints/UsefulOneLiners
I'm sure someone could improve it so feel free to fiddle :-)
Simon