LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-24-2006, 05:53 AM   #1
zeltak
Member
 
Registered: Feb 2006
Distribution: kubuntu dapper
Posts: 61

Rep: Reputation: 15
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
 
Old 05-24-2006, 06:12 AM   #2
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
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".
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
renaming files TomalakBORG Linux - Newbie 4 12-24-2005 10:14 AM
Renaming files TomalakBORG Linux - Newbie 2 12-05-2005 04:13 PM
bash help renaming files kahn Programming 6 06-16-2005 07:15 AM
renaming files script. xushi Programming 4 10-10-2004 08:06 AM
Renaming files in one go saurya_s Linux - Software 1 01-12-2004 01:16 PM


All times are GMT -5. The time now is 10:24 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration