Anne stated:
< Hi All
<
< Does anyone know if Solaris 10 has the ability to index all of it's
< contents and those contents are available for query? (Akin to Red Hat's
< "locate" and "updatedb" features.) The "find" command is so sllowwwww
bart(1M) ?
cronjob to update the database(s).
another script locate to grep this created database..
$ bart create -R $HOME/pics > $HOME/.bart/pics.db
$ locate kitten
/home/sean/pics/camera/set3/Kitten1.jpg
$
locate script
#!/bin/sh
[ -z "$1" ] && return 1;
for i in $HOME/.bart/*; do
grep -i $1 $i
done
#end of locate script
has the added feature of having md5 checksuma in case something changed :)
<
< Thank you
<
< Anne
< _______________________________________________
< opensolaris-discuss mailing list
< [email protected]
--
Sean.
.
_______________________________________________
opensolaris-discuss mailing list
[email protected]