4

Let's say I have 2000 .ODT files. Their names are random numbers. How do I go about searching for, let's say, "pricing list"? How do I find the document I need without opening all of them one by one and checking to see if it's the right one?

Is there some program to search through the words in the documents without opening them?

2

You would need a full text indexing solution, which has a filter to support indexing the full text of those files.

One option for this is the tracker package in Ubuntu. You'll need to install tracker and tracker-miner-fs for this, and you'll also likely want tracker-gui for the search tool UI.

4

An alternative is Recoll Install Recoll. Once it has indexed your files, it finds the matching files quite fastly. Also searches inside ODSs, ODPs and PDFs. Works pretty well.

  • The link in the Software Center image has a typo (“recall” at the end). – Guildenstern Aug 1 '17 at 17:34
  • @Guildenstern Thanks, I fixed it. You can edit questions/answers for improving them too, if you want to. =) – yuric Aug 2 '17 at 18:13
-1

This works for anything that openoffice can read; I wanted odt only in this case:

find -name \*.odt -exec sh -c 'unoconv --stdout -f text "{}" | grep -i string_to_search_for' \;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.