SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Related Sites

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files

INSTALATION

The executable files cindex and cfind will hopefully just work on your box. If they don't then you need to install the OCaml compiler form http://caml.inria.fr/ and then do

make nc

USAGE

The usage is similar to that of the command locate. First you need to setup the index by running:

cindex

Be warned that this may take several minutes to complete since your files are scanned and the words are organized in a structure in which it is easy to do lookups. This step uses "locate" so you may want to update its database before running cindex by running, as root:

updatedb

NOTE: If you don't know what updatedb is then chances are that your system administrator has already taken care for it to be run at regular intervals so you don't need to worry.

The result of this step is stored in your home directory in the files:

~/.dictionary.sts
~/.filebase.sts

If you want to find out more about their content take a look at sts.pdf.

The indexed files are:

  *.txt        text files
  *.tex        TeX files

More will come soon.

Now you are ready to search. If you want to find the files that contain the word "linux" then execute:

cfind linux

If you want to find files that contain both "linux" and "cfind" then execute:

cfind linux cfind

Note that results are ordered by their relevance.


Other Sites

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.