multi-rename tool question
Moderators: Hacker, petermad, Stefan2, white
multi-rename tool question
hello, i am wondering if i can rename just few of the characters in the files. like i have 10 files named "01-file-file_file.mp3", "file - file.mp3", "01 file -- file.mp3" ...and just rename these filse up to certain point. like when i want to rename lots of the mp3s just to the "-" sign. in other words just the name of the band and want the name left alone... can it be done?
Of course regular expressions could be efficient here in the first place, but they are a new 'language' to be learnt.
There is always the search for a solution done in a single action. But it some cases things can be solved in two or three subsequent actions with the solutions already available. Steps. Example :
1) Only change the desired numbering-part of the files into the right order with MRT.
2) Fiddle around with the possibilities of the N-tag, as shown here
0) I have to make a comment about the examples, named in the question :
Sometimetimes a space character, sometimes not. Sometime a "-" as division, sometimes a "_"..
Especially with a format like this, you know that a list will be growing, so prepare, choose your standards, the 'syntax' of the list. A consistent system is the most easy to convert.
So, if you a want a separation-character in the filename, use the underscore with every file.
If there are combinations of numbers and text-characters of titles and/or bands, decide about the composition of the filenames for future savings. Tracknumber first ? Then band, then title ?
Trying to be consistent in the number of ascii-chars used for bandnames or tracktitles will help too.
If you only read, as an abbreviation, the first n characters of a name or of a title will be enough to be identified.
It's about creating an efficient survey of your data. If you don't care, don't complain about the complications later.
3) As soon as I collect more than one track of the same band, I remove the possible bandname-string out of the filename, make a directory with the bandname, so the moved files only need the necessary titles to give enough info.
This dir will be the path for adding future savings of the same band. With, a step further, subdirs for different albums of the band.
The binary system is quite predictable. If one takes the properties of the system seriously. If one ignores this, and don't make any adaptations .. Well. Choose a filename of 33 characters, while 32 would have been ok too, you will probably double the processortime during the function of comparison of data.
I know it's nano nowadays, but anyway.
There is always the search for a solution done in a single action. But it some cases things can be solved in two or three subsequent actions with the solutions already available. Steps. Example :
1) Only change the desired numbering-part of the files into the right order with MRT.
2) Fiddle around with the possibilities of the N-tag, as shown here
0) I have to make a comment about the examples, named in the question :
If so, this is quite a sloppy way of giving your files a name in the first place. Because it's inconsistent.01-file-file_file.mp3", "file - file.mp3", "01 file -- file.mp3
Sometimetimes a space character, sometimes not. Sometime a "-" as division, sometimes a "_"..
Especially with a format like this, you know that a list will be growing, so prepare, choose your standards, the 'syntax' of the list. A consistent system is the most easy to convert.
So, if you a want a separation-character in the filename, use the underscore with every file.
If there are combinations of numbers and text-characters of titles and/or bands, decide about the composition of the filenames for future savings. Tracknumber first ? Then band, then title ?
Trying to be consistent in the number of ascii-chars used for bandnames or tracktitles will help too.
If you only read, as an abbreviation, the first n characters of a name or of a title will be enough to be identified.
It's about creating an efficient survey of your data. If you don't care, don't complain about the complications later.
3) As soon as I collect more than one track of the same band, I remove the possible bandname-string out of the filename, make a directory with the bandname, so the moved files only need the necessary titles to give enough info.
This dir will be the path for adding future savings of the same band. With, a step further, subdirs for different albums of the band.
The binary system is quite predictable. If one takes the properties of the system seriously. If one ignores this, and don't make any adaptations .. Well. Choose a filename of 33 characters, while 32 would have been ok too, you will probably double the processortime during the function of comparison of data.
I know it's nano nowadays, but anyway.
0.618033988
ok, bit of a spam hereHacker wrote:Could give an example of the input names and desired output names?
Roman

01 - Bad Company - Refuge.mp3
01 - bad_company-digital_nation-sour.mp3
01-)eib(-rush_hour-sour.mp3
01. )EI3( - Bad Company - Digital Nation.mp3
01-bad_company-blind-sour.mp3
01-Bad_Company-Bullet_Time-rfl.mp3
01-bad_company-nitrous-sour.mp3
02 - Bad Company - 4 Days.mp3
02 - bad_company_feat_sage-breathe-sour.mp3
02-)eib(-rush_hour_(vip_special_edit)-sour.mp3
02. )EI3( - Bad Company - Hysteria.mp3
02-bad_company-dogs_on_the_moon-sour.mp3
02-Bad_Company-Womb-rfl.mp3
03 - Bad Company - The Fear.mp3
03 - bad_company-hysteria-sour.mp3
03-)eib(-blind_(tinted_edit)-sour.mp3
03. )EI3( - Bad Company - Breathe.mp3
03-bad_company-brainscan-sour.mp3
03-Bad_Company-Street_Walker-rfl.mp3
03-bad_company-the_voice-sour.mp3
04 - Bad Company vs. Matrix - Jellyfish.mp3
04 - bad_company-crucafixion-sour.mp3
04. )EI3( - Bad Company - Toxin.mp3
04-bad_company-numbers-sour.mp3
04-Bad_Company-Stay_Tuned-rfl.mp3
04-bad_company-trick_of_the_light-sour.mp3
05 - bad_company-toxin-sour.mp3
05. )EI3( - Bad Company - Believe.mp3
05-bad_company-spider-sour.mp3
06 - bad_company-night_train-sour.mp3
06. )EI3( - Bad Company - Spacewalk.mp3
06-bad_company-deadside-sour.mp3
06-bad_company-miami_flashback-sour.mp3
07 - bad_company_and_fierce-dreamthief-sour.mp3
07. )EI3( - Bad Company - Navajo.mp3
07-bad_company-riptide-sour.mp3
08 - bad_company-infinity-sour.mp3
08. )EI3( - Bad Company - Infinity.mp3
08-bad_company-hunted-sour.mp3
08-bad_company-planet_dust-sour.mp3
09 - bad_company_and_trace-son_of_nitrous-sour.mp3
09. )EI3( - Bad Company - Crucafixion.mp3
09-bad_company-sentient-sour.mp3
09-bad_company-storyseller-sour.mp3
10 - bad_company-navajo-sour.mp3
10. )EI3( - Bad Company - Dream Thief.mp3
101-bad_company-colonies-sour.mp3
102-bad_company-silicon_dawn-sour.mp3
103-bad_company-brain_scan-sour.mp3
104-bad_company-trick_of_the_light-sour.mp3
105-bad_company-forgotten-sour.mp3
106-bad_company-oxygen_(the_drilla_killa)-sour.mp3
107-bad_company-dead_side-sour.mp3
108-bad_company-sentient-sour.mp3
109-bad_company_and_trace-nitrous-sour.mp3
10-bad_company-believe-sour.mp3
10-bad_company-forgotten-sour.mp3
11. )EI3( - Bad Company - Spider.mp3
110-bad_company-the_flood-sour.mp3
11-bad_company-running_man-sour.mp3
12. )EI3( - Bad Company - Night Train.mp3
12-bad_company-grunge_2-sour.mp3
13. )EI3( - Bad Company - Synthetic Sister.mp3
13-bad_company-ladies_of_spain-sour.mp3
14. )EI3( - Bad Company - Son of Nitrous.mp3
14-bad_company-atlantis_remix-sour.mp3
15-bad_company-rodeo-sour.mp3
16-bad_company-mindgames-sour.mp3
201-bad_company-trick_of_the_light-sour.mp3
202-bad_company-4_days-sour.mp3
203-bad_company-excession-sour.mp3
204-bad_company-sentient-sour.mp3
205-bad_company-oxygen_(the_drilla_killa)-sour.mp3
206-bad_company-silicon_dawn-sour.mp3
207-bad_company-brain_scan-sour.mp3
208-bad_company-four_days_(moving_fusion_remix)-sour.mp3
209-bad_company-dead_side-sour.mp3
210-bad_company-the_nine-sour.mp3
211-bad_company-forgotten-sour.mp3
212-bad_company-colonies-sour.mp3
213-bad_company-hunted-sour.mp3
214-bad_company_and_trace-nitrous-sour.mp3
aa-bad_company-coma-sour.mp3
AA-Bad_Company-Dogfight-sour.mp3
A-Bad_Company_&_Trace-Flashback_(The_Tumpa).mp3
a-bad_company-bullet_time-sour.mp3
A-Bad_Company-Dogs_On_The_Moon-sour.mp3
A-Bad_Company-Mindgames-sour.mp3
a-bad_company-rush_hour-sour.mp3
a-bad_company-spraycan-sour.mp3
A-Bad_Company-The_Nine-sour.mp3
A-Bad_Company-The_Voice-sour.mp3
b-bad_company-blind-sour.mp3
B-Bad_Company-Grunge_2_(Britney_Speers_Edit)-sour.mp3
B-Bad_Company-Numbers-sour.mp3
B-Bad_Company-Rodeo-sour.mp3
B-Bad_Company-Spacewalk.mp3
b-bad_company-womb-sour.mp3
C-Bad_Company-Ladies_Of_Spain-sour.mp3
C-Bad_Company-Miami_Flashback-sour.mp3
C-Bad_Company-Spider-sour.mp3
D-Bad_Company-Believe-sour.mp3
d-bad_company-story_teller-sour.mp3
D-Bad_Company-The_Running_Man-sour.mp3
i want to rename all of them just as "bad company - trackname.mp3" ...so to get rid of the all unneccessary prefixes and suffixes like the tune number etc.

- SanskritFritz
- Power Member
- Posts: 3693
- Joined: 2003-07-24, 09:25 UTC
- Location: Budapest, Hungary
If your mp3 files are tagged properly, you can use the AudioInfo plugin, and use these tags: [=audioinfo.Artist] - [=audioinfo.Title]
Otherwise, replace first:
Search for (RegEx): .*bad.company
Replace with: Bad Company
and then go on with the rest similarly.
Otherwise, replace first:
Search for (RegEx): .*bad.company
Replace with: Bad Company
and then go on with the rest similarly.
I switched to Linux, bye and thanks for all the fish!
thanks, handy link. will start fiddling soonSam_Zen wrote: 2) Fiddle around with the possibilities of the N-tag, as shown here

yea i agree that some consistent system of naming, "syntax", should be kept and thats what i am trying to do. the thing is that i didnt name those files by myself but they got to me from various sources so it is up to me to tie all those files into some system of consistency. altho there are some rules in the "mp3 scene" by which the files should be named it varies by music genre and also in other cases you will get just simple home made rip.Sam_Zen wrote: 0) I have to make a comment about the examples, named in the question :If so, this is quite a sloppy way of giving your files a name in the first place. Because it's inconsistent.01-file-file_file.mp3", "file - file.mp3", "01 file -- file.mp3
Sometimetimes a space character, sometimes not. Sometime a "-" as division, sometimes a "_"..
Especially with a format like this, you know that a list will be growing, so prepare, choose your standards, the 'syntax' of the list. A consistent system is the most easy to convert.
Often a bit of constistency can already be implied before actual download, choosing the 'save as'.
Seeing your list :
~ In a way it's spam indeed, because it is much too long. A third of it would have made your example clear enough.
~ First of all, you need to set the list itself, as the raw material, in the proper order. Before asking for any smooth solution for this conversion.
I'm talking about the fact that most of the filenames start with a number. Sometimes two digits, sometimes three. Producing a wrong order anyway : ... 10 - 100 - 101 ... 199 - 20 - 21. To correct this :
Select all two-digit-numbered files, and use MRT with "0[N]".
~ Remove as much needless differences as possible, like here this occasional string : ". )EI3( ".
So focus on things to be wiped anyway, a cleaning of the raw material, before the final conversion.
~ As certainly with the string "bad_company". When almost all files are having this, it becomes useless data.
Remove that string. Then make a subdir named 'bad_company' and copy all the files to it, before going on.
SanskritFritz has a big point about the tagging of files. Where all kind of data about the track is available before or during playback of the file. Full title, author, album, date, and more.
Most of the lazy morons nowadays ignore that opportunity, empty tags. So you get ridiculous filenames that hardly fit on your screen. While maybe 10 characters of a file are enough to let you know what you are going to play back.
And all this extra data in the filename itself makes it very easy for mp3-crawler robots to find the right mp3.
Seeing your list :
~ In a way it's spam indeed, because it is much too long. A third of it would have made your example clear enough.
~ First of all, you need to set the list itself, as the raw material, in the proper order. Before asking for any smooth solution for this conversion.
I'm talking about the fact that most of the filenames start with a number. Sometimes two digits, sometimes three. Producing a wrong order anyway : ... 10 - 100 - 101 ... 199 - 20 - 21. To correct this :
Select all two-digit-numbered files, and use MRT with "0[N]".
~ Remove as much needless differences as possible, like here this occasional string : ". )EI3( ".
So focus on things to be wiped anyway, a cleaning of the raw material, before the final conversion.
~ As certainly with the string "bad_company". When almost all files are having this, it becomes useless data.
Remove that string. Then make a subdir named 'bad_company' and copy all the files to it, before going on.
SanskritFritz has a big point about the tagging of files. Where all kind of data about the track is available before or during playback of the file. Full title, author, album, date, and more.
Most of the lazy morons nowadays ignore that opportunity, empty tags. So you get ridiculous filenames that hardly fit on your screen. While maybe 10 characters of a file are enough to let you know what you are going to play back.
And all this extra data in the filename itself makes it very easy for mp3-crawler robots to find the right mp3.
0.618033988
Re: multi-rename tool question
Code: Select all
Search for: "^[^-]*-\s*([^-]+?)\s*-\s*([^-]+?)\s*(-.*)?\.([^.]*)$"
Replace with: "$1-$2.$4"
(RegEx checked)
(You can change the output to your likings, $1 = band name, $2 = song title, $3 = file name extension)
great. indeed a handy plugin; if your files are tagged properly that is..mine luckily were. thanks fritzSanskritFritz wrote:If your mp3 files are tagged properly, you can use the AudioInfo plugin, and use these tags: [=audioinfo.Artist] - [=audioinfo.Title]
Otherwise, replace first:
Search for (RegEx): .*bad.company
Replace with: Bad Company
and then go on with the rest similarly.

Nope, maybe in TC 7.btw can i also multi-rename the mp3 tags themselves with this plugin? i can see there the "tags" option but it only renames it with the tag which is curently used.
Please concentrate on your language. Exclamation marks don't help at all to understand wtf you are talking about.why not rename multi files diffrent name
how to use ?
diffrent files and diffrent name!!!
Icfu
This account is for sale
multi-renaming question
I have files named like XXX-YYY.AAA AND XXX - VVV - YYY.BBB...
Now is it possible to rename those files the way, that the VVV part from the .BBB files will be going in between the XXX and YYY part of the .AAA files?
I mean instead of renaming the different parts to be the same, i would like to 'inject' the VVV part into the .AAA files.
The part to be injected is DIFFERENT by each of the .BBB files, but .BBB and .AAA files have the same XXX and YYY parts. The .AAA and the .BBB files making 'pairs' so to say...
I think of something like reading some (different) parts of a filename into MRT through a plug-in, than inject it in between the source filename's (the filenames marked, and to be renamed, loaded into MRT) same parts.
I took a look at the File Factory plug-in, but i just can't figure out a way to do that...
Hope someone understands what i think of, i'm not from an english region...
Now is it possible to rename those files the way, that the VVV part from the .BBB files will be going in between the XXX and YYY part of the .AAA files?
I mean instead of renaming the different parts to be the same, i would like to 'inject' the VVV part into the .AAA files.
The part to be injected is DIFFERENT by each of the .BBB files, but .BBB and .AAA files have the same XXX and YYY parts. The .AAA and the .BBB files making 'pairs' so to say...
I think of something like reading some (different) parts of a filename into MRT through a plug-in, than inject it in between the source filename's (the filenames marked, and to be renamed, loaded into MRT) same parts.
I took a look at the File Factory plug-in, but i just can't figure out a way to do that...
Hope someone understands what i think of, i'm not from an english region...

#142031 Personal licence