How to rename many files in a folder simultaneoulsy using matlab
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
parvathy prathap
el 24 de Mayo de 2021
Comentada: parvathy prathap
el 24 de Mayo de 2021
I have jpeg files with names like
501(501)
501(502)
501(503)
501(504) etc etc
I want to rename it as
501
502
503
504 etc etc
There are thousands of such files in the folder. So its difficult to do it manually. Kindly advise how to do this using matlab. Any help on this regard would be appreciated.
Respuesta aceptada
Sulaymon Eshkabilov
el 24 de Mayo de 2021
Hi,
Here is a nice robust answer code to rename files proposed by Walter that you can employ in your exercise.
Good luck
Más respuestas (1)
DGM
el 24 de Mayo de 2021
Not everything has to be done with Matlab.
If you're using *nix:
rename 's/501\(//;s/\)//' 501*.jpg
But considering that you're describing filenames with no extension, I'm guessing you might be in Windows.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!