Question

If file *.txt gets all text files from the current directory, how can I use it in order to get the text files from a specific directory and all its sub-directories?

Était-ce utile?

La solution

maybe you are looking for

$ find . -name '*.txt' -exec file {} +
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top