filehound

The M script filehound.m recursively searches directories for files matching a file filter.
2,8K Downloads
Aktualisiert 6. Mär 2001

Keine Lizenz

The M script filehound.m recursively searches directories for files matching a file filter (e.g. '*.m') and produces a list of type cell array with all pathnames for files that match the filter. It also produces a text file with the same information. This filename is chosen with the uiputfile utility.

The list could be used to examine the contents of each file:

filelist = filehound;
for i=1:length(filelist)
fid = fopen(filelist{i}, 'r')
A = fread(fid.....
......
end

The directory names are filtered for spaces and quote characters to prevent errors in Unix environments.

Zitieren als

Ronald Ouwerkerk (2024). filehound (https://www.mathworks.com/matlabcentral/fileexchange/171-filehound), MATLAB Central File Exchange. Abgerufen.

Kompatibilität der MATLAB-Version
Erstellt mit R12
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu File Operations finden Sie in Help Center und MATLAB Answers
Tags Tags hinzufügen
Quellenangaben

Inspiriert: Improved file hounding

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.0.0