Path: utzoo!attcan!uunet!mcvax!ukc!axion!iwarner
From: iwarner@zaphod.axion.bt.co.uk (Ivan Warner,G44 SSTF,6632,)
Newsgroups: comp.unix.questions
Subject: Re: Directory searching utility
Message-ID: <2219@zaphod.axion.bt.co.uk>
Date: 10 Aug 89 10:04:40 GMT
References: <16137@pasteur.Berkeley.EDU>
Sender: news@axion.bt.co.uk
Reply-To: iwarner@zaphod.axion.bt.co.uk
Lines: 13

From article <16137@pasteur.Berkeley.EDU!, by ahmad@icsib6.Berkeley.EDU (Subutai Ahmad):
! Does anyone have a utility which searches the current directory
! and all its subdirectories for files which match the arguments?
! For example (if it was named lsd), the command
! 	lsd *.c *.h
! would list all the .c and .h files in the current subtree.  It should
! indicate which directories each file came from.
! 
! ls -R * | egrep ".*\.[ch]"  almost works. It lists the files but 
! not their associated directories.
! 

	find . -name "*.[ch]" -print