delete files

How would I delete all files containing word "DIN" that are located in several subfolders of a directory?

Respuestas (2)

Daniel Shub
Daniel Shub el 15 de Nov. de 2011

0 votos

I wouldn't use MATLAB for this ...
On Linux
find ./ -type f -name *DIN* -exec rm {} \;
I am not sure of the syntax of find on Windows, but I think it is similar.

Categorías

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

Etiquetas

Preguntada:

el 15 de Nov. de 2011

Community Treasure Hunt

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

Start Hunting!

Translated by