I'd like to find source files (*.c, *.cpp, *.h) that contain in Linux/MinGW/Cygwin, and recursively in all sub directories.
My basic idea is using find
and grep
. However, building a regular expression that can check given file name is either *.c, *.cpp, or *.h isn't easy. Could you help me out?