delete files

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

답변 (2개)

Walter Roberson
Walter Roberson 2011년 11월 15일

0 개 추천

Use rdelete from this contribution
Daniel Shub
Daniel Shub 2011년 11월 15일

0 개 추천

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.

카테고리

도움말 센터File Exchange에서 File Operations에 대해 자세히 알아보기

태그

질문:

2011년 11월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by