我似乎无法通过搜索在 StackOverflow 上找到它。我怎样才能找到类型为 .html
和 .py
的所有文件?
我正在尝试 find ./-name *.py or *.html -type f
但这是返回 find: or: unknown primary or operator
最佳答案
$ find . -name '*.h' -o -name '*.cpp'.
或查找。 -type f\( -name "*.class"-o -name "*.sh"\)
关于linux - 如何使用 or 语句查找多种类型的文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31039611/