Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!sics.se!uplog.se!uplog.uppsala.telesoft.se!thomas From: thomas@uppsala.telesoft.se (Thomas Tornblom) Newsgroups: comp.unix.questions Subject: Re: grep Message-ID: Date: 23 Oct 90 15:32:34 GMT References: <1990Oct23.123025.18012@kodak.kodak.com> Sender: thomas@uplog.se (Thomas Tornblom) Organization: Telesoft Uppsala AB Lines: 19 In-Reply-To: tiefel@sunshine.Kodak.COM's message of 23 Oct 90 12:30:25 GMT 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. find -type f -name '*xyz*' -print Thomas -- Real life: Thomas Tornblom Email: thomas@uppsala.telesoft.se Snail mail: Telesoft Uppsala AB Phone: +46 18 189406 Box 1218 Fax: +46 18 132039 S - 751 42 Uppsala, Sweden