I just love the "locate" function in Linux. At work I spent a lot of
time with RS6000 machines. Does anoone know of the existance of some
similar tool for AIX?
please (also) reply to B.de...@uci.kun.nl
Thanks!
Regards
Bas de Beer a écrit dans le message <38283271...@uci.kun.nl>...
Install the findutils on aix, then make an entry in the crontab for updatedb.
You can use the sources from linux.
--
Markus Pietrek
Tel. office: +49-761-473099
Felix
Bas de Beer schrieb:
:) Felix
It is very useful tool. Using updatedb from cron you can build the database
of all the files on the system. locate will search the database and tell you
where the given file/expression is located. We combine the database from
all the systems on the network (Multiple AIX, HP-UX and Linux systems).
locate will tell us the location of a given file(s) on each and every
system. It is much faster than running find.
:)Bas de Beer schrieb:
:)> Hello,
:)>
:)> I just love the "locate" function in Linux. At work I spent a lot of
:)> time with RS6000 machines. Does anoone know of the existance of some
:)> similar tool for AIX?
:)>
:)> please (also) reply to B.de...@uci.kun.nl
:)>
:)> Thanks!
--
Hemant Shah /-------------------\ ^~~~~^
E-mail: NoJunkM...@xnet.com |TECHNOLOGY | | |
|No place for wimps | o|-OO-|o
TO REPLY, REMOVE NoJunkMail | -Dilbert |--- | () |
FROM MY E-MAIL ADDRESS. \-------------------/ | |
-----------------[DO NOT SEND UNSOLICITED BULK E-MAIL]------------------
I haven't lost my mind, Above opinions are mine only.
it's backed up on tape somewhere. Others can have their own.
Can the output be retrieved using a shell script in a format that can be
analysed ? csv or so ?
br Steve
"Hemant Shah" <sh...@xnet.com> wrote in message
news:809odv$b9d$1...@flood.xnet.com...
It builds an index of all the files/dirs on disk which you then can
search very fast.
Bas
Felix Castillo wrote:
> What does it do?
>
> Felix
>
> Bas de Beer schrieb:
>
> > Hello,
> >
> > I just love the "locate" function in Linux. At work I spent a lot of
> > time with RS6000 machines. Does anoone know of the existance of some
> > similar tool for AIX?
> >
> > please (also) reply to B.de...@uci.kun.nl
> >
> > Thanks!
It's much faster than finding all the file. locate searches only one file
(/var/lib/locatedb) for files which match the pattern. (In my case, a
development system with 8GB usage. This file is 2MB large. Scanning the whole
disk is much slower ;-) )
>
> Can the output be retrieved using a shell script in a format that can be
> analysed ? csv or so ?
>
> br Steve
The usage is "locate <partly name>"
This returns a single filename on each line which contains partly name. (which
is the same as find does).
For example: "locate .cpp" will find all files which contains .cpp in their name
(mostly c++ source files).
A better aproach is to locate all files (locate /), and egrep for your strings.
The retreived names can be used as command line arguments with xargs or in
scripts.
Will it work on SGI IRIX 6.4 /6.5.5?
Regards,
Pete
Sent via Deja.com http://www.deja.com/
Before you buy.
It sounds to me that you can do the same thing by running find
nightly (find / -print > file.lst), then using grep (or egrep) on
the file that was created.
Tim
--
*****************************************************************
Tim Reed
UNIX Systems Administrator
rpg...@email.sps.mot.com
*****************************************************************