findwork fine, grep for example was not designed to run searches with multiple search keys, and neither of them use an index, so every search walks the filesystem anew. Another traditional tool,
locate, uses an index for speed, but it only knows how to search filenames (and paths), not file contents.
recollappears to be the open-source file indexing and searching tool that I was looking for. Here's how to install it in openSUSE:
- Go to software.opensuse.org
- In the search box, type "recoll-qt3"
- Under your version of openSUSE, click on "Show unstable packages"
- Find version 1.14.4 from the KDE:KDE3 repository and click on "1 Click Install"
Once the tool is installed, you need to set up an index like so:
- review the configuration file documentation:
# less /usr/share/recoll/examples/recoll.conf
- as your normal user, create a
.recolldirectory in your home directory:
$ mkdir ~/.recoll
- create a basic
recoll.confin that directory:
$ echo "topdirs = ~" > ~/.recoll/recoll.conf(
topdirsis all you need to get started)
- build the index:
$ recollindex 2>/dev/null(run without
>/dev/nullto see the error messages, but they probably aren't important)
- run some simple searches
$ recollq searchterm $ recollq searchterm1 $ recollq searchterm1 searchterm2