I have a bunch of images that I'd like to rename as follows:*.png.png --> *.png*.jpeg.jpg --> *.jpg*.JPEG --> *.jpgThe only thing I've tried thus far is mv *.png.png *.png, but I knew that wouldn't work, but took a chance nevertheless.Is there a simple (or maybe not) way to batch rename files with this pattern?
Mac Terminal - rename *.png.png to *.png
terminal;osx;rename;batch jobs
Here is something using find to rename *.png.png -> *.png:find ./ -name '*.png.png' -type f \        -exec sh -c 'mv {} ./$(basename -s .png.png {}).png' \;It isn't really gerenic, so you have to customize it for the other file extensions.