searching for a file
Guy Harris
guy at auspex.auspex.com
Tue May 9 04:57:27 AEST 1989
>how would one search for a filename in a directory hierarchy?
With the "find" command.
>supose i know there exists a file call gugu but i cannot remmember
>in which sub-directory?
find . -name gugu -print
>i was thinking of using :
> find . -name 'gugu' -print
You got it...
>but obviously that only works for the current directory
...but obviously you haven't RTFM; "find" does *NOT* search only the
current directory - the whole point of "find" is that it *does* search
recursively.
More information about the Comp.unix.questions
mailing list