Xref: utzoo comp.unix.shell:614 comp.unix.internals:712 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!ncar!gatech!rutgers!mcdchg!ddsw1!dattier From: dattier@ddsw1.MCS.COM (David W. Tamkin) Newsgroups: comp.unix.shell,comp.unix.internals Subject: Re: Why is find so slow (Re: Why use find?) Message-ID: <1990Oct18.213733.17330@ddsw1.MCS.COM> Date: 18 Oct 90 21:37:33 GMT References: <1990Sep30.182331.14363@iconsys.uucp> <941@hls0.hls.oz> <26919@mimsy.umd.edu> <638@npdiss1.StPaul.NCR.COM> Reply-To: dattier@ddsw1.MCS.COM (David W. Tamkin) Organization: Contributor Account at ddsw1, Wheeling, Illinois Lines: 14 mercer@npdiss1.StPaul.NCR.COM (Dan Mercer) wrote in <638@npdiss1.StPaul.NCR.COM>: | Maybe I'm dense, but how does find know whether a file is a directory | (and should be descended) or another type of file without stat()ing the | file? I think the idea is that after find does stat() the file and sees that it is a directory with only two links, it shouldn't bother stat()ting the entries in that directory because none of them will be subdirectories. There will be only one more level to descend. David Tamkin Box 7002 Des Plaines IL 60018-7002 708 518 6769 312 693 0591 MCI Mail: 426-1818 GEnie: D.W.TAMKIN CIS: 73720,1570 dattier@ddsw1.mcs.com