renaming mat and subdirectories

Thousands of files and subdirectories contain as part of their names a wrong name "Naic" that I want to change to "Trace". Is it possible to do in an easy way. i.e is it possible to replace a name in thousands of files and subdirectories easily?

2 comentarios

Rick Rosson
Rick Rosson el 3 de Sept. de 2011
Are all of these files and subdirectories stored in one top-level parent directory?
joseph Frank
joseph Frank el 3 de Sept. de 2011
yes

Iniciar sesión para comentar.

Respuestas (2)

Rick Rosson
Rick Rosson el 3 de Sept. de 2011

0 votos

Please take a look at the following functions:
>> doc genpath
>> doc dir
>> doc movefile
>> doc regexprep
I think you can create a script to do what you are asking using these functions.
HTH.
Rick

Categorías

Más información sobre File Operations en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 3 de Sept. de 2011

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by