Hi guys!
I’m new to BRU, but I’ve been searching for a solution online to no avail. I have thousands of files that need renaming from a list, but given the sheer number of files (over 6,000 at this point), it’s just easier (at least for me) to rename them with the command line prompt. The problem I’m having with BRU is that the files are not arranged the same way as they are in Windows, which makes it extremely hard to proceed because that messes up the renaming process in CMD. Here’s what they should look like:
????????? 1.wav ????? ? - 01.wav
????????? 3.wav ????? ? - 02.wav
????????? 4.wav ????? ? - 03.wav
????????? 7.wav ????? ? - 04.wav
????????? 10.wav ????? ? - 05.wav
????????? 13.wav ????? ? - 06.wav
????????? 16.wav ????? ? - 07.wav
????????? 16-01.wav ????? ? - 08.wav
????????? 18.wav ????? ? - 09.wav
????????? 19.wav ????? ? - 10.wav
????????? 1.wav ????? ? - 01.wav
????????? 3.wav ????? ? - 02.wav
????????? 4.wav ????? ? - 03.wav
????????? 5.wav ????? ? - 04.wav
????????? 6.wav ????? ? - 05.wav
????????? 7.wav ????? ? - 06.wav
????????? 9.wav ????? ? - 07.wav
????????? 11.wav ????? ? - 08.wav
????????? 13.wav ????? ? - 09.wav
????????? 14.wav ????? ? - 10.wav
????????? 16.wav ????? ? - 11.wav
????????? 17.wav ????? ? - 12.wav
The column on the left are the original files names, arranged the way Windows correctly arranges them (from lowest to highest). In BRU, Disabling “Logical Sorting” works best, but it still not good since it sorts them in this order instead:
????????? 1.wav ????? ? - 01.wav
????????? 10.wav ????? ? - 02.wav
????????? 13.wav. ????? ? - 03.wav
????????? 16-01.wav ????? ? - 04.wav
????????? 16.wav ????? ? - 05.wav
????????? 18.wav. ????? ? - 06.wav
????????? 19.wav ????? ? - 07.wav
????????? 3.wav ????? ? - 08.wav
????????? 4.wav ????? ? - 09.wav
????????? 7.wav ????? ? - 10.wav
????????? 1.wav ????? ? - 01.wav
????????? 11.wav ????? ? - 02.wav
????????? 13.wav ????? ? - 03.wav
????????? 14.wav ????? ? - 04.wav
????????? 16.wav ????? ? - 05.wav
????????? 17.wav ????? ? - 06.wav
????????? 3.wav ????? ? - 07.wav
????????? 4.wav ????? ? - 08.wav
????????? 5.wav ????? ? - 09.wav
????????? 6.wav ????? ? - 10.wav
????????? 7.wav ????? ? - 11.wav
????????? 9.wav ????? ? - 12.wav
As you can see, now the files on the left column are completely out of order, so they don’t match well with the re-numbering that I’d like to apply from the right column. Hopefully I’m explaining myself well. As mentioned, I already tried enabling/disabling “Logical Sorting” and it seems to work best with it disabled in this case, due to the prefix numbers. Otherwise those numbers really end up all over the place.
One thing to keep in mind is that, in the above case, the naming is not that different, but there are cases where they are almost completely different, which is why I need to be able to apply the list of new names (right column) to the left one. The left column needs to be in the correct order for everything to match.
BTW, I did try creating a pair list to import into BRU, but it was WAY too time consuming to make sure that there were no spaces between the names, and only having a comma there. Also, for some reason, even the little bit I created did not work for me. I saved it as an UTF-8 file, did a test, but it didn’t work.
Anyway, your help will be much appreciated. The closest I got to getting them to line up correctly was applying this RegEx:
Match: (.*)(\D)(\d)$
Replace: \1\20\3
However, I don’t know how to deal with cases like this one ????????? 16-01.wav. If you guys can help me figure that out, I think I’ll be able to organize these files in the correct way for me to apply the new names.
Thanks ????.