質問

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?

役に立ちましたか?

解決

maybe you are looking for

$ find . -name '*.txt' -exec file {} +
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top