Directory searching utility

Subutai Ahmad ahmad at icsib6.Berkeley.EDU
Wed Aug 9 08:54:23 AEST 1989


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.

--

Subutai Ahmad
ahmad at icsi.berkeley.edu



More information about the Comp.unix.questions mailing list