Path: utzoo!mnetor!uunet!mcvax!mhres!jv From: jv@mhres.mh.nl (Johan Vromans) Newsgroups: comp.unix.questions Subject: Re: Finding Files Message-ID: <1503@mhres.mh.nl> Date: 12 Dec 87 16:08:12 GMT References: <205700003@prism> <4441@ihlpg.ATT.COM> Organization: Multihouse N.V., The Netherlands Lines: 21 Summary: looking everywhere In article <205700003@prism> billc@prism.UUCP writes: > > Right now, to find a file somewhere under my current directory, > I use the following alias: > > alias where "find \$cwd -name \!* -exec echo {} \;" > .. etc .. On our systems, a small cron script executes every night the following command: find / -print > /dirfile Finding a file somewhere can be done by grepping in the /dirfile. Of course, the contents of /dirfile are not really up-to-date, but this is just a minor drawback. "find" on the whole system (including mounted disks) takes more than an hour, a grep in /dirfile much less than a minute. -- Johan Vromans | jv@mh.nl via European backbone Multihouse N.V., Gouda, the Netherlands | uucp: ..{uunet!}mcvax!mh.nl!jv "It is better to light a candle than to curse the darkness"