From: Michele Andreoli ([email protected])
Date: Mon Nov 13 2000 - 18:49:56 CET
On Mon, Nov 13, 2000 at 04:18:52PM +0100, Jochen Cichon nicely wrote:
> > usr/bin/locate:
> > grep "$1" /var/locatedb
> OK thats easy!
>
>
> > /usr/bin/updatedb:
> > rm /tmp/locatedb
> > for a in `ls / | grep -v proc | grep -v dev `;do \
> > find /$a >>/tmp/locatedb;done
> > mv /tmp/locatedb /var/locatedb
>
> With debian and a real find u can use:
> find / -xdev
> So update would become to
> find / -xdev > /var/locatedb
With the next muLinux, "find" and "grep" are always *real*, if
you take care to load WKS and SRV.
Maybe, I will add also the nice and powerfull "xargs" command.
Michele
-- "I'd like to conclude with a positive statement, but I can't remember any. Would two negative ones do?" -- Woody Allen --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
This archive was generated by hypermail 2.1.6 : Sat Feb 08 2003 - 15:27:16 CET