delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/21/17:48:22

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

(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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019