From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,9e32d0119366ce3c X-Google-Attributes: gidfee84,public From: "Gleb O. Raiko" Subject: Re: UNIX command to search subdirs for text in a file Date: 1997/01/14 Message-ID: <32DB446A.2781@cecmow.enet.dec.com>#1/1 X-Deja-AN: 209678925 references: <01bc018d$8f170bc0$17ee1bac@usbgrjeff> content-type: text/plain; charset=us-ascii organization: Moscow Software Center, Digital Equipment Corp. mime-version: 1.0 newsgroups: comp.unix.osf.osf1 x-mailer: Mozilla 3.0 (X11; I; OSF1 V4.0 alpha) 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.