search Code
Status: Beta
Brought to you by:
tlatorre
File | Date | Author | Commit |
---|---|---|---|
poems | 2010-09-10 | tlatorre | [r10] added some poems |
LICENSE | 2010-08-17 | tlatorre | [r3] add some documentation |
README | 2010-09-09 | tlatorre | [r9] updated README file |
search.py | 2010-09-10 | tlatorre | [r11] default replace is yes |
search version 1.0 ================== What is search? ----------- search is a simple python script for doing a regex search [and replace] on multiple text files. How to use search ----------------- The syntax for invoking search is: ~$ search <pattern> [files ...] [directories ...] If no file or directory is specified, search will default to search all text files in the current directory. So, for instance, if you wanted to search all files in your documents folder for instances containing the word 'basket' you would do: ~$ search "basket" ~/documents/ Suppose you didn't want results containing "basketball", etc. You would do: ~$ search "basket\s" ~/documents/ In order to get a quick introduction to regular expressions, visit <http://docs.python.org/dev/howto/regex.html> Type 'search' with no command arguments to get a full list of options. Installation ------------ search simply requires Python in order to run. It has only been tested on python version 2.4.3, but should work for all subsequent 2.X versions. Documentation ------------- This IS the documentation. Licensing --------- See the file called LICENSE. Bug Reports ----------- Please send bug reports to <tlatorre9@gmail.com> That's all folks! ----------------- --Anthony LaTorre <tlatorre9@gmail.com>