I have a set of files, all of them nnn.MP4.mov
. How could I rename them so that it is just nnn.mov
?
for i in `ls *png`;do echo mv $i "${i%%.*}"@xx."${i##*.}";done
vimv lets you rename multiple files using Vim's text editing capabilities.
Entering vimv opens a Vim window which lists down all files and you can do pattern matching, visual select, etc to edit the names. After you exit Vim, the files will be renamed.
[Disclaimer: I'm the author of the tool]
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.
On mac OSX you can install the rename
command via Homebrew: brew install rename
Then you can rename using find/replace from that folder on the command line:
rename 's/\.MP4\././' *
You also can see more options using man rename
.