
20 Apr
2004
20 Apr
'04
9:09 a.m.
On Tue, Apr 20, 2004 at 09:05:28PM +1200, Glenn Ramsey wrote:
How do I find files having either of several extensions?
Eg this finds all .c and .h files
$find . -name '*.[ch]'
but what if I want to find all .cpp and .h files?
I guess I need a grouping operator in the pattern but I can't figure out what it is.
Use "-o" for "or": find . -name \*.cpp -o -name \*.h :) John