LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   a question about renaming files in mass! (http://www.linuxquestions.org/questions/linux-software-2/a-question-about-renaming-files-in-mass-448018/)

zeltak 05-24-2006 05:53 AM

a question about renaming files in mass!
 
Hi

I have 1000 movies i would like to mass rename in a strange way. I have txt files with the movie name as file name for each movie i own . the mpeg movie files are unnamed. does anyone know of a way to automate a filename transfer from a txt file to mpg file? for example i have satrwars.txt file and a 1.mpg file. i would like to transfer the filename so it would give me starwars.mpg. i would like to do it for all movies

thx alot in advance

Zeltak

Simon Bridge 05-24-2006 06:12 AM

http://www.faqs.org/docs/Linux-HOWTO...tro-HOWTO.html
... the renna script demonstrates renaming multiple files with various rules. It won't be exactly what you want, you'll have to adjust the script to your purposes.

The rest of the tutorial is pretty helpful too.

You could also use perl "rename".


All times are GMT -5. The time now is 03:27 PM.