updatedb/locate

From: Jens Korte (nudeln@gmx.net)
Date: Mon Nov 13 2000 - 15:06:24 CET


Hey !
What's about a locatedb?

Jens Korte
Dortmund, Germany

        usr/bin/locate:
grep "$1" /var/locatedb

        /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

---------------------------------------------------------------------
To unsubscribe, e-mail: mulinux-unsubscribe@sunsite.auc.dk
For additional commands, e-mail: mulinux-help@sunsite.auc.dk



This archive was generated by hypermail 2.1.6 : Sat Feb 08 2003 - 15:27:16 CET