searching for a file
Guangliang He
ghe at nucthy.physics.orst.edu
Mon May 8 13:59:20 AEST 1989
In article <1530 at cmx.npac.syr.edu> gefuchs at logiclab.cis.syr.edu (Gill E. Fuchs) writes:
>
>how would
one search for a filename in a directory hierarchy?
>
>supose i know there exists a file call gugu but i cannot remmember
>in which sub-directory?
>
>i was thinking of using :
> find . -name 'gugu' -print
>but obviously that only works for the current directory
>how would one make that a recursive search, something a la ls -R
>
>still in search of gugu
>gill
I don't know what flavor of UNIX you are using. On most unix systems I know
of(Sys V and BSD), find(1) does search recursively. Check your manual see if
it search recursively or not.
-----------------------------------------------------------------------
|
USMAIL: Guangliang He | INTERNET: ghe at PHYSICS.ORST.EDU
Department of Physics | ghe at jacobs.CS.ORST.EDU
Oregon State University | BITNET: hegl at orstvm.bitnet
Corvallis, OR 97331 | PHONE: (503) 754-4631
|
-----------------------------------------------------------------------
More information about the Comp.unix.questions
mailing list