Extract files from folders with same ID
Ältere Kommentare anzeigen
Hi everybody I am a new user of MATLAB. I have a text file with first row containing ID ( 'EventID = 72450561') of the event and then there are about 150(Stations) rows (Two columns, Name and Distance separated by tab like "BAV 14") then there is another event ID and the same pattern of Stations. In Directories with same IDs having stations files (*.SAC) like (NC.BAV..EHZ.D.2010.007.071549.SAC). There are more than 300 files in each directory. I need to extract only files comparing the name like in text in a separate folder. How can I do it to save my time? Regards ZAFAR
3 Kommentare
KSSV
am 8 Mai 2018
YOu want to pick files with evenid = 72450561..? this information is inside the file? Isn't it?
KSSV
am 8 Mai 2018
Zafar commented: I need to Pick Stations files(NC.BAV..EHZ.D.2010.007.071549.SAC) compared with txt fileand make output as a separate folder with ID like 72450561
KSSV
am 8 Mai 2018
So do those text files names have anything in common?
Akzeptierte Antwort
Weitere Antworten (3)
Muhammad Zafar Iqbal
am 8 Mai 2018
0 Stimmen
Muhammad Zafar Iqbal
am 8 Mai 2018
0 Stimmen
Muhammad Zafar Iqbal
am 8 Mai 2018
0 Stimmen
Kategorien
Mehr zu File Operations finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!