Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Blue Velvet

Moderator emeritus
Original poster
Jul 4, 2004
21,929
265
Accidentally converting 2500 large files (which took about six hours) to the same folder instead of another, I've ended up with them all having the same file names, but with a space and a 1 at the end of the file-name, like so:

filename.tif
filename 1.tif

Now that I've moved all these converted files to another directory, any Terminal tricks or otherwise I can use to batch-remove the space and the 1 from 2500 filenames?

Thanks in advance. :)
 
Automator will do it ... I can work something up if you want.

EDIT: Attached. Just pick the filename in "Make Sequential", right now it is set to filename, and then run it and choose the folder the files are in.
 

Attachments

  • Rename.zip
    65.4 KB · Views: 34
Last edited:
I also use A Better Finder Rename for that purpose. It's not free, but I used the trial and found it worked really well, so I went ahead and bought it (and I don't buy a lot of software, mostly just use free or open-source stuff).

jW
 
I also use A Better Finder Rename for that purpose. It's not free, but I used the trial and found it worked really well, so I went ahead and bought it (and I don't buy a lot of software, mostly just use free or open-source stuff).

jW
Another vote for A Better Finder Rename 8. It's brilliant, I love it. <3
 
Mass replace it

I've used massreplaceit for a number of years. It's free and I've never had an issue with it. I even lets you Un-do the rename after the fact.

You have to learn the quirks of how to get it to find what you want to replace. In your example, you would have it search for "e 1.tif" and replace it with "e.tif" or simply search for " 1" and replace it with "" (nothing)

It has done in minutes what would take days to do manually.

just do a search on massreplaceit
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.