slocate on opensolaris
As your local user
find / | gzip > ~/.slocate-db.gz
Go to a terminal
gain root privileges
use your favorite text editor and put
#! /bin/bash
gzgrep -i $1 ~/.slocate-db.gz
Readers Note: the -i makes it case inSenITive so it's up to you if you want to add or drop the -i
Using the tcsh shell may allow this to be done with an alias, but I've not spent enough time with tcsh to know how or if it can be done..
Alternatively.. you could possibly contact the author of mlocate and see if he was interested in your patches to get it to compile/run under OpenSolaris.
TrackBack
TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00e551818418883300e5541bbac28834
Listed below are links to weblogs that reference slocate on opensolaris:
The comments to this entry are closed.
Comments