How to rename rename *.png.png to *.png in Mac OS terminal

Last updated on July 27th, 2015 at 01:13 pm

I always use this way to rename *.png.png to *.png

[code lang=”shell”]
find ./ -name ‘*.png.png’ -type f \
-exec sh -c ‘mv {} ./$(basename -s .png.png {}).png’ \;
[/code]

Tags:

Discover more from Juzhax Technology

Subscribe now to keep reading and get access to the full archive.

Continue reading