*BSD News Article 9729


Return to BSD News archive

Received: by minnie.vk1xwt.ampr.org with NNTP
	id AA6370 ; Fri, 08 Jan 93 15:07:44 EST
Newsgroups: comp.unix.bsd
Path: sserve!manuel.anu.edu.au!munnari.oz.au!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!ames!pacbell.com!UB.com!quack!dfox
From: dfox@quack.sac.ca.us (David Fox)
Subject: Re: Locate/fast-find (Was: Re: Shared lib X for 386bsd?)
In-Reply-To: <EWERLID.93Jan8222423@ida.docs.uu.se>
Message-ID: <fXOtCvR@quack.sac.ca.us>
Organization: The Duck Pond public unix: +1 408 249 9630, log in as 'guest'.
References: <1993Jan8.050552.11116@ntuix.ntu.ac.sg>
Date: 11 Jan 1993 03:07:58 UTC
Lines: 25

In article <EWERLID.93Jan8222423@ida.docs.uu.se> you write:

I tried mailing this, but it bounced.

>A very useful command is `locate' or `fast find'.
>Just run `updatedb' at regular intervalls.

I have something similar, but probably not in the same format that
locate can use.  It's part of a 386bsd program 'fs' that shows all
open files.  There's a program 'fsmakedb' that makes a database of
all files in the filesystem, and I run it as part of /etc/rc.

>Anyway, rather than asking the net where a file in my own filessytem
>is I'd run a brute force 'find / -print | grep xterm'. :-)

Actually, the '-print' is superflous, just ' find . | grep xterm' should
work.  And, that's pretty fast in finding files, too.

--
David Fox
dfox@quack.sac.ca.us