Batch Rename-need help asap

freereg

Registered
I need help renaming weird files

ABC_1234567890_randomtext.txt

I need this as 1234567890.txt

DEF_0987654321_anytext.txt

I need this as 0987654321.txt

GHI_1029384756_moretext123.txt

i need this as 1029384756.txt

any help ?
If this can be done with automator, which one?
Anyone?
 
If the files are all in the same directory and the number of characters before the part you want to keep is always the same and the part you want to keep has always the same length, then a script is certainly feasible. My Perl ain't good enough, but I do know that it'd be rather easy to accomplish once you have the right regexp for your task.

Or maybe a tool like ABetterFinderRename could help as well.
 
yes.. the letter before the first _ are always 3 letters
and the number in between the _ are always 10 digits
the text/numbers after the second _ are random

i knew about betterfinderrename but it aint free
 
Back
Top