Directory searching utility
Greg Limes
limes at sun.com
Wed Aug 9 10:15:02 AEST 1989
In article <16137 at pasteur.Berkeley.EDU> ahmad at 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 at sun.com ...!sun!limes 73327,2473 [choose one]
More information about the Comp.unix.questions
mailing list