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: "Jeff Shervey" Subject: UNIX command to search subdirs for text in a file Date: 1997/01/13 Message-ID: <01bc018d$8f170bc0$17ee1bac@usbgrjeff>#1/1 X-Deja-AN: 209781067 organization: Landis & Staefa newsgroups: comp.unix.osf.osf1 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 Thank you, jeff.shervey@us.landisstaefa.com -- These comments do not necessarily reflect the views of Landis & Staefa, Inc.