I want to run find -name with multiple file types. Eg.
find -name *.h,*.cpp
Is this possible?
find . -name '*.h' -o -name '*.cc'`
works for searching files.
find . \( -name '*.h' -o -name '*.cc' \)`
works for executing commands on them
find . \( -name '*.h' -o -name '*.cc' \) -exec egrep "#include" {} \; -print | egrep "^\."