How to list all source files (*.c, *.cpp, *.h)
Solution 1:
This should work:
find Linux/MinGW/Cygwin -name '*.c' -o -name '*.cpp' -o -name '*.h'
Solution 2:
find -regex '.*/.*\.\(c\|cpp\|h\)$'
Solution 3:
I would use:
find . -regex '.*\.\(c\|cpp\|h\)$' -print