Wildcard file name matching with multiple dots on Windows
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
fclose(fopen('myfile.txt', 'w'));
fclose(fopen('myfile.txt.1', 'w'));
dir('*.txt.*')
will match "myfile.txt" and "myfile.txt.1" on Windows to my surprise.
Is there a way to only get 'myfile.txt.1'?
There is a similar post on
but this didn't help me
0 comentarios
Respuestas (1)
Jan
el 3 de Jun. de 2022
List = dir('*.txt.*')
List = List(contains({List.name}, '.txt.'))
0 comentarios
Ver también
Categorías
Más información sobre File Operations en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!