[SOLVED] How to rename a lot of files

Questions about applications and software
Forum rules
Before you post please read this

[SOLVED] How to rename a lot of files

Postby mikesol on Thu Jun 25, 2009 11:09 pm

Hi guys,

I'm doing an university's project and a need to rename a lot of files (yes I know, it really sucks :? ), I have something like that

ap0525cd03od06_e01_SA_Param008_001.clas
....
ap0525cd03od06_e01_SA_Param008_100.clas

ap0525cd03od06_e01_SA_Param009_001.clas
....
ap0525cd03od06_e01_SA_Param009_100.clas
.....
.....
ap0525cd03od06_e01_SA_Param014_001.clas
....
ap0525cd03od06_e01_SA_Param014_100.clas


and I wish have


ap0525cd03od06_e01_SA_Param001_001.clas
....
ap0525cd03od06_e01_SA_Param001_100.clas

ap0525cd03od06_e01_SA_Param002_001.clas
....
ap0525cd03od06_e01_SA_Param002_100.clas
.....
.....
ap0525cd03od06_e01_SA_Param007_001.clas
....
ap0525cd03od06_e01_SA_Param007_100.clas


it means, I need to change the Param008, Param009,..., Param014 by Param001, Param002,..., Param007. There are 700 files by folder, and I need to do these changes in 10 folders. So, There is an application who do that automatically?

Any help will be appreciated.

Thanks in advance
Last edited by mikesol on Sun Jul 12, 2009 7:41 pm, edited 1 time in total.
Sorry for my bad English
User avatar
mikesol
Level 2
Level 2
 
Posts: 69
Joined: Thu Apr 09, 2009 3:40 pm
Location: Costa Rica

Linux Mint is funded by ads and donations.
 

Re: How to rename a lot of files

Postby DrHu on Fri Jun 26, 2009 4:23 am

http://www.go2linux.org/rename-bulk-fil ... le-command
http://andrewault.blogspot.com/2008/03/ ... linux.html

Copy a subset of the files to practice techniques with, otherwise you could badly munge the files
User avatar
DrHu
Level 16
Level 16
 
Posts: 6615
Joined: Wed Jun 17, 2009 8:20 pm

Re: How to rename a lot of files

Postby optimize me on Fri Jun 26, 2009 7:48 am

I found the program metamorphose to be invaluable in doing batch renames. It's got a little bit of a learning curve, but it's a gui app and you can figure it out quick. The homepage is here: http://file-folder-ren.sourceforge.net/ The have .deb files available.
AMD Phenom II X6 1045T 2.8GHz 8GB DDR3 RAM ATI Radeon HD6970
User avatar
optimize me
Level 5
Level 5
 
Posts: 639
Joined: Wed Jun 03, 2009 5:25 pm

Re: How to rename a lot of files

Postby mikesol on Fri Jun 26, 2009 8:42 am

Metamorphose did the job,

Thanks a lot guys.
Sorry for my bad English
User avatar
mikesol
Level 2
Level 2
 
Posts: 69
Joined: Thu Apr 09, 2009 3:40 pm
Location: Costa Rica


Return to Software & Applications

Who is online

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