Renaming many files at once

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

Renaming many files at once

Postby manishk on Thu Aug 16, 2007 4:55 am

I want to rename all the files in a folder to follow a pattern...something like file1, file2, file3 etc. How do I do it??
"...Many people can only keep on fighting when they expect to win. I'm not like that, I always expect to lose. I fight anyway, and sometimes I win."

-Stallman
User avatar
manishk
Level 3
Level 3
 
Posts: 191
Joined: Wed Nov 29, 2006 4:19 pm
Location: India

Linux Mint is funded by ads and donations.
 

Re: Renaming many files at once

Postby scorp123 on Thu Aug 16, 2007 5:32 am

manishk wrote:I want to rename all the files in a folder to follow a pattern...something like file1, file2, file3 etc. How do I do it??
Not really knowing what precisely you want and what files we're dealing with here I think it would be too dangerous to give you a shell script that would do exactly what you wrote up there in that too short sentence. One typo and my script could ruin your system.

So I'd suggest you apt-get install the tool mmv and then read its man page ... e.g. man mmv
User avatar
scorp123
Level 8
Level 8
 
Posts: 2287
Joined: Sat Dec 02, 2006 4:19 pm
Location: Switzerland

Postby hairy_Palms on Thu Aug 16, 2007 3:52 pm

try installing thunar, then go to Applications->Accessories->Bulk Rename

i think it might be what your looking for.
User avatar
hairy_Palms
Level 4
Level 4
 
Posts: 297
Joined: Mon Nov 27, 2006 10:46 am

Postby manishk on Sun Aug 19, 2007 7:39 am

Thanks, I'll try both.

I dint explain the exact situation because I wanted a general solution, anyways heres what I want to do:

When I transfer pictures from a Nokia cell phone (or any camera for that matter) they come with strange names...I want to rename all the pictures at once.

Something like what happens in Win when you select all of then and rename at once.
"...Many people can only keep on fighting when they expect to win. I'm not like that, I always expect to lose. I fight anyway, and sometimes I win."

-Stallman
User avatar
manishk
Level 3
Level 3
 
Posts: 191
Joined: Wed Nov 29, 2006 4:19 pm
Location: India


Return to Newbie Questions

Who is online

Users browsing this forum: Bing [Bot], Google Adsense [Bot] and 23 guests