Mail Archives: djgpp/1997/10/28/03:38:48
On Mon, 27 Oct 1997, Salvador Eduardo Tropea (SET) wrote:
> I agree with you, for that reason I did a "grep shell", that's a friendly
> interface to call grep. Additionally it adds the recursion.
No matter how smart and friendly this interface will be, it won't
support every possible way of using `grep'. That's why sometimes you
will need to use `grep' in conjunction with `find'. Using `find' for
recursively searching subdirectories is of course redundant in DJGPP,
since we have the "..." wildcard, courtesy of DJ. But `find' can
choose files it passes to `grep' using much more powerful and
elaborate tests than you can ever do with `grep' alone. For example,
you can limit the recursion to a certain depth of subdirectories,
search only files created within last 2 days, or which are newer than
a certain file, or larger than N bytes, etc.
- Raw text -