Directory searching utility
Ivan Warner,G44 SSTF,6632,
iwarner at zaphod.axion.bt.co.uk
Thu Aug 10 20:04:40 AEST 1989
>From article <16137 at pasteur.Berkeley.EDU!, by ahmad at 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
More information about the Comp.unix.questions
mailing list