Path: utzoo!utgpu!watmath!att!pacbell!ames!sun-barr!newstop!sun!limes From: limes@sun.com (Greg Limes) Newsgroups: comp.unix.questions Subject: Re: Directory searching utility Message-ID:Date: 9 Aug 89 00:15:02 GMT References: <16137@pasteur.Berkeley.EDU> Sender: news@sun.Eng.Sun.COM Organization: Sun Microsystems, Inc. Lines: 17 In-reply-to: ahmad@icsib6.Berkeley.EDU's message of 8 Aug 89 22:54:23 GMT In article <16137@pasteur.Berkeley.EDU> ahmad@icsib6.Berkeley.EDU (Subutai Ahmad) writes: > 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. Could be written, but at a minimum you would have to quote those pesky stars to get them past your shell. Why not just use find? % find . -name '*.[hc]' -print -- -- Greg Limes limes@sun.com ...!sun!limes 73327,2473 [choose one]