Path: utzoo!utgpu!watserv1!watmath!att!att!pacbell.com!ucsd!sdd.hp.com!samsung!uunet!cs.dal.ca!NSTN.NS.CA!clyde.concordia.ca!s3!lemieux From: lemieux@ireq.hydro.qc.ca (Lemieux) Newsgroups: comp.unix.questions Subject: Re: grep Message-ID: <3563@s3.ireq.hydro.qc.ca> Date: 23 Oct 90 16:14:32 GMT References: <1990Oct23.123025.18012@kodak.kodak.com> Sender: root@s3.ireq.hydro.qc.ca Reply-To: lemieux@ireq.hydro.qc.ca (Lemieux) Organization: IREQ, Hydro-Quebec Lines: 23 In article <1990Oct23.123025.18012@kodak.kodak.com> tiefel@sunshine.Kodak.COM (Lenny Tiefel) writes: >I have a main directory with hundreds of subdirectories, >and I want to find a file with a particular string, say "xyz" >The grep command only works in one directory at a time. Is there >a way of searching my whole directory structure to find a file >with a particular string? > >Thanks. > >-- > >Len Tiefel tiefel@kodak.com Try this: find . -print -name '*xyz*' - Eric ----------------------------------------------------------------------------- Eric LEMIEUX | Internet: lemieux@ireq.hydro.qc.ca Institut de Recherche d'Hydro-Quebec | 1800 Montee Sainte-Julie | TEL: (514) 652-8139 Varennes, Quebec, Canada | FAX: (514) 652-8309 -----------------------------------------------------------------------------