I have a set of files, all of them nnn.MP4.mov
. How could I rename them so that it is just nnn.mov
?
First, do a dry run (will not actually rename any files) with the following:
for file in *.mov do echo mv "$file" "${file/MP4./}" done
If it all looks fine, remove the echo
from the third line to actually rename the files.
I just successfully used Automator (first time I've bothered), and it works really well. I saved the automation as a Service. It took about 10 seconds to make something easily reusable:
Now you can right-click any selection in Finder, go to the Service menu and select "Replace Text", fill in how you want the text changed or replaced - and click "Continue" to apply configured changes.
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