Skip to content
Index all the strings of all the files in a directory
Python
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
README
redis_search.py
strings_generator.py

README

# Context

* You have a directory wiht stuff and you can extract strings from this stuff
  using the command "strings" (ie. your stuff is not compressed...).
* You are lazy and don't want to open all this files to see what they contains.
* You know that some of this files contains some particular words (ex: a name)
* You have a lot of memory available (at least the same size as all the files
  you want to search in)

# Requirements

* Linux / strings
* redis (http://redis.io/, https://github.com/antirez/redis)
* redis-py (https://github.com/andymccurdy/redis-py)

# Optional requirements

* ipython (optional but I like it)
* pystemmer library (used if installed on the system)

::
    sudo easy_install pystemmer

* fuzzy library (used if installed on the system)

::
    sudo easy_install fuzzy

# Usage

* Run a redis server
* Run strings_generator.py in an interactive python shell (like ipython)
  with the directory you want to search in as argument

Something went wrong with that request. Please try again.