I think of implementing a file search program using indexing in linux… I know that there are several other file search programs like beagled. but I am doing this for study purpose… I am struck with how to do indexing.. I have the following idea that I took from maemo-mapper application.. for example if u have file named ‘suresh’ its index in the file system as files…
/home/$USERNAME/.file_search_index/s/u/r/e/s/h/list.txt.. This list.txt contains the location of all files with name = ‘suresh’… Pls suggest a better idea/algorithm to implement it… And If there is any material on various file search technique pls post it….
You haven’t seen the locate command that comes with findutils? Like beagled, it’s free software, so you can study the code.
The findutils package is always looking for contributors.
Information on the database format is at http://www.gnu.org/software/findutils/manual/html_node/find_html/Database-Formats.html