Place leading numbers at end

Post any Bulk Rename Command support requirements here. Open to all registered users.

Place leading numbers at end

Postby parker » Fri Aug 02, 2013 5:43 am

The files I want to rename all have two number at the beginning(I.E. 01 Filename, 02Filename etc) The file names are variable lengths with spaces and hyphens in the name plus a file extension(.wav). There is a single space between the two leading numbers and the rest of the file name. How can I take the leading numbers and place them at the end?
parker
 
Posts: 9
Joined: Mon Dec 01, 2008 10:30 am

Re: Place leading numbers at end

Postby truth » Sat Aug 10, 2013 2:56 pm

Is 02Filename a typo?.. I assumed you dont want to rename any without the leading ##Space
Do you only want to rename .wav's?.. I assumed yes (easy enough to remove)
The below renames ## Filename.wav --> Filename ##.wav

brc32 /pattern:*.wav /regexp:"^(\d\d) (.+):\2 \1" /execute
truth
 
Posts: 221
Joined: Tue Jun 25, 2013 3:39 am
Location: Earth, OrionArm, MilkyWay


Return to BRC Support