I would like to rename my images from .png to @2x.png. Is there some easy way to do this with the terminal?
With the help of Mark Setchell's answer I was able to solve this with the following one-liner:
for f in *.png; do NEW=${f%.png}@2x.png; mv ${f} "${NEW}"; done;
Edit: flopr was right, should work now
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With