batch rename TV series from a list

A swapping-ground for Regular Expression syntax

batch rename TV series from a list

Postby chevy wax » Wed May 08, 2019 3:54 am

Hi guys, long time user, but this is my first post.
I have a list of TV shows that I would like to bulk add their show titles.

ie. rename these files ( in a batch, maybe referencing a txt file of the show names ? ) ;

The Damned S01E01.mkv
The Damned S01E02.mkv
The Damned S01E03.mkv
etc.

To

The Damned S01E01 - Blood.mkv
The Damned S01E02 - Guts.mkv
The Damned S01E03 - Gore.mkv
etc.

Does anyone know how this magic can be done ???
chevy wax
 
Posts: 1
Joined: Wed May 08, 2019 3:44 am

Re: batch rename TV series from a list

Postby therube » Wed May 08, 2019 5:19 pm

Renaming From A Text File

With Bulk Rename Utility it is possible to rename files according to a text file. The text file should contain a list of "old name" and "new name" pairs, separated by a pipe symbol ( | ).
To use this facility, create a text file in for the correct format, for example:

Track001.mp3|Headlong.mp3
Track002.mp3|Rushes.mp3
TRACK003.mp3|AnywhereIs.mp3

One entry per line.

Next, click the Import Rename-Pairs on the Actions menu and load your file. If the file is valid then you will see the "new name" column reflecting the contents of the text file.

When comparing the current filename with the text file, the application ignores the case of the filename, e.g. it will match Track001.mp3 and TRACK001.mp3. This makes it easy to rename the files.

So, something like...

dir /b the* > old
copy old new
-> edit new adding the wanted texts to the new names

(linux-like) paste command...

paste old new -d"|" > rename.TXT

Then in BRU, Actions | Import Rename-Pairs --> rename.TXT

old:
Code: Select all
The Damned S01E01.mkv
The Damned S01E02.mkv
The Damned S01E03.mkv


new:
Code: Select all
The Damned S01E01 - Blood.mkv
The Damned S01E02 - Guts.mkv
The Damned S01E03 - Gore.mkv


Code: Select all
paste.exe   old   new   -d"|"   >   rename.TXT


rename.TXT
Code: Select all
The Damned S01E01.mkv|The Damned S01E01 - Blood.mkv
The Damned S01E02.mkv|The Damned S01E02 - Guts.mkv
The Damned S01E03.mkv|The Damned S01E03 - Gore.mkv


paste can be found here:http://gnuwin32.sourceforge.net/packages/coreutils.htm

You'll need both the "Binaries" (I simply download the .zip, then pull the paste.exe out from it) & also the "Dependencies" (two .dll files that the binary .exe rely on).
therube
 
Posts: 1314
Joined: Mon Jan 18, 2016 6:23 pm


Return to Regular Expressions