re-number in groups

Bulk Rename Utility How-To's

re-number in groups

Postby schendel » Sun Apr 26, 2020 12:41 am

I'd like to add a prefix to a series of files but in groups of five. The first five would be prefixed with "01", the next five with "02" etc. I'm pretty sure this could be done in the Numbering (10) section, but haven't quite figured it out yet...
schendel
 
Posts: 2
Joined: Sun Apr 26, 2020 12:35 am

Re: re-number in groups

Postby RegexNinja » Sun Apr 26, 2020 2:55 pm

Hi..
There's no numbering-option to halt or delay the counter's increment process.
With javascript (paid version), you can perform math against the counter (divide by 5, round-up):

newName='0'+Math.ceil(counter/5)+'--'+name
RegexNinja
 
Posts: 134
Joined: Fri Feb 21, 2020 5:26 pm

Re: re-number in groups

Postby schendel » Sun Apr 26, 2020 5:49 pm

Okay...I was thinking there was a trick using the "Break" option under Numbering. Still not 100% clear on how that is supposed to work.
Side note - I did figure out a way to do what I needed using the "Renaming From A Text File" (Import Rename-Pairs) feature so I'm good for now.
schendel
 
Posts: 2
Joined: Sun Apr 26, 2020 12:35 am

Re: re-number in groups

Postby trm2 » Mon Apr 27, 2020 3:39 am

The manual at the beginning of the How-To forum explains all of the features including the Break - get it now - it's free.
trm2
 
Posts: 156
Joined: Wed Jan 15, 2020 12:47 pm

Re: re-number in groups

Postby RegexNinja » Mon Apr 27, 2020 4:41 am

Yeah, no tricks with the break-option, Im afraid.
Its just a restarter, working kinda like the folder-option to restart the counter, but its much harder to describe.
Break=2 basically means: Dont let the 2nd-char in filename get changed by incrementing.

So if you were numbering a bunch of files like: ab01, ab02, ab03, etc.
Break=2 has no effect, because incrementing cant change the 2nd-char
Break=3 restarts after ab09, since ab10 tries to change the 3rd-char

If it's still not clear, please see the manual at: http://www.bulkrenameutility.co.uk/foru ... =12&t=4743
I'm sure it describes this much better, and has a ton of info on the numbering options.
Anywho, glad you found a solution.. Cheers!
RegexNinja
 
Posts: 134
Joined: Fri Feb 21, 2020 5:26 pm


Return to How-To