Mail Archives: djgpp/1997/10/14/07:34:26
On Tue, 14 Oct 1997 eyal DOT ben-david AT aks DOT com wrote:
> Apropos grep, I didn't find an option for 'grepping' also in
> subdirectories.
> Do I have to specify the dirs in the command line ?
On Unix, yes. But DJGPP has a hidden treasure in its filename-globbing
code: the special wilcard "..." recursively expands to all of the
subdirectories. So, e.g., "grep go32 c:/djgpp/include/.../*.h" will find
all the instances of "go32" in all the DJGPP header files.
> Is there any tool that does it (with or without grep) ?
On Unix, the usual way is to say something like "find . -exec grep ...".
If you need to search files written is some programming language, a
better tool is `lid' from GNU ID-utils (v2gnu/idu32b.zip).
- Raw text -