View Single Post
Old 05-24-2008, 10:05 AM   #57
=X=
Wizard
=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.
 
=X='s Avatar
 
Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
@igorsk
That's why you da man! Yes calling a binary to do the search would be way faster than having an interpreted language do all of the work.

@clemente
If you already know this please ignore. But you will have to get rid of the '=' sign form igorsk original post for the search to work, since the dictionaries do not have an '=' after the definition word.

Quote:
this.runCommandResult("/bin/grep '^"+target.word+" =' /Data/database/media/books/lenru.txt");
change to
Quote:
this.runCommandResult("/bin/grep '^"+target.word+" ' /Data/database/media/books/lenru.txt");

Last edited by =X=; 05-24-2008 at 10:07 AM. Reason: updated grammer
=X= is offline   Reply With Quote