Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!ucsd!helios.ee.lbl.gov!epb2.lbl.gov!envbvs From: envbvs@epb2.lbl.gov (Brian V. Smith) Newsgroups: comp.unix.questions Subject: Re: find command Message-ID: <4343@helios.ee.lbl.gov> Date: 1 Dec 89 00:17:54 GMT References: <616@uncle.UUCP> <21544@adm.BRL.MIL> Sender: usenet@helios.ee.lbl.gov Reply-To: envbvs@epb2.lbl.gov (Brian V. Smith) Organization: lbl Lines: 29 X-Local-Date: 30 Nov 89 16:17:54 PST In article <616@uncle.UUCP>, donlash@uncle.UUCP (Donald Lashomb) writes: < In article <21544@adm.BRL.MIL> mchinni@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@lbl.gov) Lawrence Berkeley Laboratory I don't speak for LBL, these non-opinions are all mine.