Reputation: 15
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?
file *.txt
Upvotes: 1
Views: 41
Reputation: 12110
maybe you are looking for
$ find . -name '*.txt' -exec file {} +