Or just build the GNU locate database directly from the mlocate database, without indexing the disk:
db=/var/cache/locate/locatedb if mlocate -0 -r "" | sort -z | /usr/lib/locate/frcode -0 > $db.new ; then mv -- $db $db.old && mv -- $db.new $db && rm -- $db.old else rm $db.new false fi -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]