Recursive GREP
As I said over and over, grep has two major problems. First, grep tries to run on all files, including binary files. Second, grep only does one directory at a time. So, I wrote this Python script, called regrep.py, to recursively grep all sub-directories.
Here is the script’s usage:
$ regrep.py <-i> [word] |
---|
For example, here is how to grep all sub-directories for a case insensitive word.
$ regrep.py -i TEXT_TO_FIND |
---|
You can download this Python script here, or you can copy-n-paste from down below.
by Phil for Humanity
on 10/02/2014