From: "Gleb O. Raiko" <rajko@cecmow.enet.dec.com>
Subject: Re: UNIX command to search subdirs for text in a file
Date: 1997/01/14 [thread overview]
Message-ID: <32DB446A.2781@cecmow.enet.dec.com> (raw)
In-Reply-To: 01bc018d$8f170bc0$17ee1bac@usbgrjeff
Jeff Shervey wrote:
:
: With DEC UNIX 3.2 how can I search a bunch of subdirectories for a
: certain
: file that contains certain text.
: I'm trying this command with no luck:
:
: grep -i "duplicate" | find . -name *.sql -print
:
: I've also tried:
:
: find . -name *.sql -print | grep -i "duplicate" *.pls
Normally, I use
find . -name \*.sql -exec egrep -i "duplicate" {} \; -print
:
: Thank you,
: jeff.shervey@us.landisstaefa.com
:
: --
: These comments do not necessarily reflect the views of Landis &
: Staefa, Inc.
next prev parent reply other threads:[~1997-01-14 5:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-01-13 5:00 UNIX command to search subdirs for text in a file Jeff Shervey
1997-01-13 5:00 ` Mark Sirota
1997-01-14 5:00 ` Gleb O. Raiko [this message]
1997-01-14 5:00 ` Kenneth Miller
1997-01-14 5:00 ` Steve Strange USG
1997-01-14 5:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
1997-01-15 5:00 ` Juergen Fuhrmann
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox