Path: utzoo!utgpu!watmath!att!ucbvax!pasteur!icsib6.Berkeley.EDU!ahmad From: ahmad@icsib6.Berkeley.EDU (Subutai Ahmad) Newsgroups: comp.unix.questions Subject: Directory searching utility Message-ID: <16137@pasteur.Berkeley.EDU> Date: 8 Aug 89 22:54:23 GMT Sender: news@pasteur.Berkeley.EDU Organization: International Computer Science Institute Lines: 14 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@icsi.berkeley.edu