A grep program configured the way I like it.
I wrote grin to help me search directories full of source code. The venerable
GNU grep_ and find_ are great tools, but they fall just a little short for my
normal use cases.
I wrote grin to get exactly the features I wanted:
* Recurse directories by default.
* Do not go into directories with specified names.
* Do not search files with specified extensions.
* Be able to show context lines before and after matched lines.
* Python regex syntax (one can quibble as to whether this is a feature or my
laziness for using the regex library provided with my implementation
language, but as a Python programmer, this is the syntax I am most familiar
with).
* Unless suppressed via a command line option, display the filename regardless
of the number of files.
* Accept a file (or stdin) with a list of newline-separated filenames. This
allows one to use find_ to feed grin a list of filenames which might have
embedded spaces quite easily.
* Grep through gzipped text files.
* Be useful as a library to build custom tools quickly.
Author:
--------
Robert Kern robert.kern@enthought.com
- Sources inherited from project devel:languages:python:misc
-
2
derived packages
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout home:smarty12:Python/python-grin && cd $_
- Create Badge
Source Files
Filename | Size | Changed |
---|---|---|
grin-1.2.1.tar.gz | 0000026854 26.2 KB | |
python-grin.changes | 0000000746 746 Bytes | |
python-grin.spec | 0000002944 2.88 KB | |
python2.7.diff | 0000000299 299 Bytes |
Latest Revision
Non-integrated tw package cleanup, batched
Comments 0