When I try to find .c file, I can use below command:
find . -name *.c
As for .h file:
find . -name *h
Then how to find them at the same time? I know one solution:
find . -namd *.c && find . -name *.h
Is there any better answer?
Further:
In fact I need to find .c .h .p .hpp .cpp .p files. Then how to do?
find . -name '*.[chcpphppp]'
Above one seems not right?
You could do
or better
but you really should read the documentation of
find