searching for a file

R. Meesters, Tech Support, AT&T Canada DSO ram at attcdso.UUCP
Tue May 16 01:00:38 AEST 1989


In article <1530 at cmx.npac.syr.edu>, gefuchs at skolem.uucp (Gill E. Fuchs) writes:
> 
> how would one search for a filename in a directory hierarchy?
> 
> 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
> 

How bout using the following...

	find /<sub-dir> -name 'gugu' -print

This will search from the named sub-directory upwards through the directory
tree...providing, of course, you have appropriate permissions.

I often use 	find / -name firp -print 	to find files when I don't
know where the heck they exist.


-- 
------------------------------------------------------------------------------
	Richard Meesters		|
	AT&T Data Service Operations	|	"Calling YOU stupid would
	Toronto, Ontario		|	be an insult to stupid people"
	...attcan!nebulus!attcdso!ram	|	   - A Fish Called Wanda
------------------------------------------------------------------------------



More information about the Comp.unix.questions mailing list