Active Topics

 


Reply
Thread Tools
Lord Raiden's Avatar
Posts: 1,562 | Thanked: 349 times | Joined on Jun 2008
#1
I'm wondering if it's possible to get the locate and find commands added to OS2008. Those are hugely useful and I use them a lot in regular Linux and BSD.
 
BrentDC's Avatar
Posts: 903 | Thanked: 632 times | Joined on Apr 2008
#2
I think find is already there?

Code:
~ $ find --help
BusyBox v1.6.1 (2008-05-22 10:32:35 EEST) multi-call binary

Usage: find [PATH...] [EXPRESSION]
__________________
-Brent

Author of TouchSearch -- web searching software for Maemo 5.

Mobile Device lineage: Palm Z22 -> Palm TX -> Nokia N800 -> Nokia N900
 
terrencegf's Avatar
Posts: 221 | Thanked: 182 times | Joined on Jul 2007 @ Central Illinois
#3
"mlocate" is available from the "debfarm" repository. Works fine on diablo.

One-click Repository Install:


debfarm

Application Manager Repository Info:
Code:
Catalog name: debfarm
Web address:  http://p.quinput.eu/debfarm/
Distribution: chinook
Components:   user
 

The Following 3 Users Say Thank You to terrencegf For This Useful Post:
bluesubaru's Avatar
Posts: 197 | Thanked: 39 times | Joined on Jan 2008 @ Long Island
#4
I use these scripts to find files easily. I run updatedb every so often to update the database; and run "locate matchingtext" to find file or directory names that match "matchingtext"

updatedb.sh
Code:
find / -print > /media/mmc2/db/locate.db
locate.sh
Code:
## script to find file from database created with updatedb.sh

grep "$1" /media/mmc2/db/locate.db | more
__________________
Paul <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Linux newbie with a N810 OS2008 >>>>>>>>>>>>>>>>>> Art is the lie that shows us the Truth
Don't let a suitcase full of cheese be your big fork & spoon
 

The Following User Says Thank You to bluesubaru For This Useful Post:
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#5
That's busybox find, which is notably deficient vs. GNU find. I think I've seen a couple of GNU find packages; one dumped it with the name find with the prefix /usr/something/, and the other installed it with prefix /usr/, but named it gnufind. Don't have either of them on now, though...

Edit: And it becomes apparent that terrencegf already posted this; guess I scrolled right past somehow:
As for locate, mlocate is available from debfarm -- .install for the repo is http://www.gronmayer.com/it/dl.php?id=205
 
Lord Raiden's Avatar
Posts: 1,562 | Thanked: 349 times | Joined on Jun 2008
#6
Well, I tried bluesubaru's method and got errors about too many files open. As for terrencegf, I'll have to give that a spin later.
 
bluesubaru's Avatar
Posts: 197 | Thanked: 39 times | Joined on Jan 2008 @ Long Island
#7
Originally Posted by Lord Raiden View Post
Well, I tried bluesubaru's method and got errors about too many files open. As for terrencegf, I'll have to give that a spin later.
Yeah, I get that if I run updatedb when I am not root. Try it after becoming root.
__________________
Paul <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Linux newbie with a N810 OS2008 >>>>>>>>>>>>>>>>>> Art is the lie that shows us the Truth
Don't let a suitcase full of cheese be your big fork & spoon
 
Reply


 
Forum Jump


All times are GMT. The time now is 00:48.