how to use `find' non-recursively?
Erik Reuter
eer36024 at uxa.cso.uiuc.edu
Mon Jan 28 12:10:44 AEST 1991
I need help with the find command. I am trying to use the -prune expression
but I cannot get it to work.
What I want to do is to search the current directory for all files matching
a certain name, say -name abc\* , but I *do not* want find to descend into
any subdirectories.
find . -type d -prune -o -name abc\* -print
does not seem to work, since it prunes *everything*, including the . directory.
Any suggestions?
--
Erik Reuter, Internet: e-reuter at uiuc.edu UUCP: uunet!uiucuxc!uiuc.edu!e-reuter
More information about the Comp.unix.questions
mailing list