Reputation: 28692
I can't seem to find this on StackOverflow by searching. How can I find all files of type .html
and .py
?
I'm trying find ./ -name *.py or *.html -type f
But this is returning find: or: unknown primary or operator
Upvotes: 0
Views: 643
Reputation:
$ find . -name '*.h' -o -name '*.cpp'.
or find . -type f \( -name "*.class" -o -name "*.sh" \)
Upvotes: 4