tedious task
Moderators: Hacker, petermad, Stefan2, white
tedious task
Hi all, returning once again with a call for help
I have lots of files with identical names, stored in separate dirs:
folder01/speech.mp3
folder02/speech.mp3
folder03/speech.mp3
Well, you get the picture. I would like to store all these files in the same dir, but then ofcourse they would have to be renamed, in order to not collide. I guess the most natural thing would be to incorporate the foldername in the filename, something like this:
folder01_speech.mp3
folder02_speech.mp3
folder03_speech.mp3
etc.
Its a typical thing to solve with bash, but is there any way i could do this in TC so i dont have to move the stuff onto *nix?
cheers!
I have lots of files with identical names, stored in separate dirs:
folder01/speech.mp3
folder02/speech.mp3
folder03/speech.mp3
Well, you get the picture. I would like to store all these files in the same dir, but then ofcourse they would have to be renamed, in order to not collide. I guess the most natural thing would be to incorporate the foldername in the filename, something like this:
folder01_speech.mp3
folder02_speech.mp3
folder03_speech.mp3
etc.
Its a typical thing to solve with bash, but is there any way i could do this in TC so i dont have to move the stuff onto *nix?
cheers!
- fabiochelly
- Power Member
- Posts: 603
- Joined: 2003-02-05, 12:03 UTC
- Location: Rambouillet, France
2sybaritensybariten wrote:The multirenametool does, like jhegener points out above, rock, but i doubt that it could do this task for me. I need to recursively rename each file... seems like the MRT only works on what is currently selected in the lister.djk wrote:Multi-Rename Tool (Ctrl_T) - wouldn't help you?
peace
Do you really have so many such directories?
If not it seems to be easy:
- go to the directory
- Ctrl-A
- Ctrl-T
- foldername_[N]
- Start
- And... that's all. Time for the next directory.
Then the next directory and the next...
Then Ctrl-B, Ctrl-A and copy all the files to the destination folder.
2fabiochelly
Unfortunately MRT doesn't have one parameter: "Parent directory" - so sybariten would have to choose other way of naming (not directory_file)

Yeah but i'd still have to insert the foldernames by hand. Keep in mind that the files all have the same name, so i somehow have to give them incrementing namesfabiochelly wrote:You can make a search, add to listbox then use the MRT.
You can also use the branch view (CTRL+B) them use the MRT.
/cheers
- fabiochelly
- Power Member
- Posts: 603
- Joined: 2003-02-05, 12:03 UTC
- Location: Rambouillet, France