Date: 21 Oct 1997 00:00:00 +0000 Newsgroups: comp.os.msdos.djgpp Subject: subdirectories (was: ANNOUNCE: Grep 2.1 uploaded) References: <42256530 DOT 003743EC DOT 00 AT aks DOT com> From: falk AT gmx DOT de (Falk Friedrich) Message-ID: <6gG8wF36rWB@frodo.ruhr.de> Lines: 11 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk (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 ? >Is there any tool that does it (with or without grep) ? Use gnu find btw. find(1) and xargs(1) Example: find . -type f -name "*.txt" |xargs grep -Ei "anything" |less Ciao, Falk