@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");
|