Page 1 of 1

[SOLVED] How to rename a lot of files

Posted: Thu Jun 25, 2009 11:09 pm
by mikesol
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

Re: How to rename a lot of files

Posted: Fri Jun 26, 2009 4:23 am
by DrHu
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

Re: How to rename a lot of files

Posted: Fri Jun 26, 2009 7:48 am
by optimize me
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.

Re: How to rename a lot of files

Posted: Fri Jun 26, 2009 8:42 am
by mikesol
Metamorphose did the job,

Thanks a lot guys.