Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: strange@zk3.dec.com (Steve Strange USG)
Subject: Re: UNIX command to search subdirs for text in a file
Date: 1997/01/14	[thread overview]
Message-ID: <STRANGE.97Jan14095533@wasted.dec.com> (raw)
In-Reply-To: 01bc018d$8f170bc0$17ee1bac@usbgrjeff


In article <01bc018d$8f170bc0$17ee1bac@usbgrjeff> "Jeff Shervey" <jeff.shervey@us.landisstaefa.com> writes:

>   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

How about something like

find . -name "*.sql" -print | xargs egrep "duplicate"

	Steve
--
Steve Strange						strange@zk3.dec.com
Digital Equipment Corporation, Nashua, NH		     (603) 881-0595
Digital UNIX Filesystem Development



  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
1997-01-14  5:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
1997-01-14  5:00 ` Kenneth Miller
1997-01-14  5:00 ` Steve Strange USG [this message]
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