Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Searching for OpenOffice.org .odt and other files
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Fog_Watch
Apprentice
Apprentice


Joined: 24 Jul 2006
Posts: 267
Location: Utility Muffin Research Kitchen

PostPosted: Wed Nov 17, 2010 4:26 am    Post subject: Searching for OpenOffice.org .odt and other files Reply with quote

Problem
Code:
$ ls *.odt
treasurer_15sep10.odt

Code:
$ grep -r 189314 *

Doesn't find anything.
Solution
Obtain DocSearcher source.
Move the source into its own directory:
Code:
mv DocSearcher-src-3.92.0.zip docsearcher/

Code:
unzip DocSearcher-src-3.92.0.zip

Code:
ant

Code:
cd build/

Code:
sudo cp -a dist /usr/non-portage/bin/docsearch

Code:
sudo chown -R root:root /usr/non-portage/bin/docsearch

Then create an executable that runs the DocSearch.jar
Code:
/usr/non-portage/bin $ ls -la docsearch.sh
-rwxr-xr-x 1 root root 76 Nov 17 15:15 docsearch.sh

Code:
$ cat docsearch.sh
#!/bin/sh
cd /usr/non-portage/bin/docsearch && java -jar DocSearch.jar

And for icewm users this is added to /etc/icewm/menu:
Quote:
prog "Document search" /usr/non-portage/bin/docsearch/icons/ds.gif docsearch.sh

189314 can then be searched for.
Back to top
View user's profile Send private message
anxt
Apprentice
Apprentice


Joined: 25 Feb 2003
Posts: 254
Location: Frozen Tundra, Canada

PostPosted: Wed Dec 22, 2010 12:57 am    Post subject: Reply with quote

How did grep fail you?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum