|
2010-08-14
, 20:50
|
|
Posts: 299 |
Thanked: 168 times |
Joined on Jun 2006
@ Wales UK
|
#12
|
find / -print > /home/user/MyDocs/updatedb
grep "$*" /home/user/MyDocs/updatedb
|
2011-02-28
, 22:38
|
|
Posts: 1,107 |
Thanked: 720 times |
Joined on Mar 2007
@ Germany
|
#13
|
For anyone wanting to actually be able to use updatedb from the locate package, there's a tiny problem with the updatedb script.
You'll need to edit /usr/bin/gnu/updatedb
Line 208 ----> : ${find:=${BINDIR}/find}
Change this to ----> : ${find:=${BINDIR}/gfind}
Once done, gupdatedb and glocate will work as expected.
Hope this helps someone : )
|
2011-02-28
, 23:01
|
Posts: 1,341 |
Thanked: 708 times |
Joined on Feb 2010
|
#14
|
Why would you install updatedb/slocate? You would have two tools that do the same thing. Tracker already indexes all the files. "tracker-files -s Files | grep -i string" locates what you want (I don't know why tracker-search does not work though).
Nokia-N900:~# tracker-files -s Files | grep frcode NOTE: Limit was reached, there are more items in the database not listed here Nokia-N900:~# tracker-files -l 4096 -s Files | grep frcode Nokia-N900:~# locate frcode /home/opt/maemo/usr/lib/locate-gnu/frcode /opt/maemo/usr/lib/locate-gnu/frcode /usr/lib/locate-gnu/frcode
I kid! - sorry if I offended anyone.
I guess for me it's familiarity, and (perhaps an incorrect) assumption that tracker was for indexing multimedia, not 'everything' starting at /