find command

Brian V. Smith envbvs at epb2.lbl.gov
Fri Dec 1 11:17:54 AEST 1989


In article <616 at uncle.UUCP>, donlash at uncle.UUCP (Donald Lashomb) writes:
< In article <21544 at adm.BRL.MIL> mchinni at pica.army.mil (Michael J.
Chinni, SMCAR-CCS-E) writes:
< >I was reading an article in a magazine, and the article was talking
about the
< >find command. It mentioned as an example:	find / -depth -print
< >
< >Now I have RTFM (both on BSD-based systems and SysV-based system) and
I can find
< >no option -depth, furthermore, when I try the example I get:
< >find: bad option < -depth >
< >
< >What does this option mean ?
< 
< Gee, it's in my manual ( AT&T unix-pc ):
< 
< 	-depth	Always true.  Must begin the expression. Forces a*depth-first
<                search...

It seems as though the Ultrix and SunOs find ALWAYS use a *depth-first*
search and there is no option to do a *breadth-first* search.

Anyone out there know if it is possible to do a breadth-first search with find
under Ultrix or SunOs?  I presume BSD is the same.

_____________________________________
Brian V. Smith    (bvsmith at lbl.gov)
Lawrence Berkeley Laboratory
I don't speak for LBL, these non-opinions are all mine.



More information about the Comp.unix.questions mailing list