Any rule to batch rename multiple different ending files ?

Bulk Rename Utility How-To's

Any rule to batch rename multiple different ending files ?

Postby Philkrom » Mon Aug 21, 2023 5:09 pm

Hello, I would like to rename multiple files with only one pass (instead of 6)
These files are cube faces for 360 photos.

Files ending with renamed to
_skybox0.jpg -> -Top.jpg
_skybox1.jpg -> -Front.jpg
_skybox2.jpg -> -Right.jpg
_skybox3.jpg -> -Back.jpg
_skybox4.jpg -> -Left.jpg
_skybox5.jpg -> -Bottom.jpg

For instance : 74a066d_skybox2.jpg -> 74a066d-Right.jpg
I tried using import rename pairs, and replacing the beginning of the files with * but it didn't work...
So is there a way to do this with BRU ? Maybe using JS ?
Many thanks !
Philippe
Philkrom
 
Posts: 2
Joined: Mon Aug 21, 2023 4:54 pm

Re: Any rule to batch rename multiple different ending files ?

Postby therube » Mon Aug 21, 2023 5:44 pm

3:Replace accepts "OR's".

Code: Select all
Replace:  _skybox0|_skybox1|_skybox2|_skybox3|_skybox4|_skybox5
With:  Top|Front|Right|Back|Left|Bottom
therube
 
Posts: 1319
Joined: Mon Jan 18, 2016 6:23 pm

Re: Any rule to batch rename multiple different ending files ?

Postby Philkrom » Sat Aug 26, 2023 10:27 am

therube wrote:3:Replace accepts "OR's".

Code: Select all
Replace:  _skybox0|_skybox1|_skybox2|_skybox3|_skybox4|_skybox5
With:  Top|Front|Right|Back|Left|Bottom


Great feature, thanks a lot for the answer!!!
Philkrom
 
Posts: 2
Joined: Mon Aug 21, 2023 4:54 pm


Return to How-To