How to find a list of .c and .h files present in a directory recursively
The “find” command can be used to get a list of .c and .h files recursively. The following example lists all .c and .h files present in the current directory and all sub-directories.
[neo@techpulp ~]# find . -type f -iname \*.[ch] ./myproject/test.c ./myproject/test.h ./src/examples/example1.c [neo@techpulp ~]#

