Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!llnl!ramius.llnl.gov!rjshaw From: rjshaw@ramius.llnl.gov (Robert Shaw) Newsgroups: comp.unix.questions Subject: Re: grep Message-ID: <659@llnl.LLNL.GOV> Date: 23 Oct 90 09:44:47 GMT References: <1990Oct23.123025.18012@kodak.kodak.com> <658@llnl.LLNL.GOV> Sender: news@llnl.LLNL.GOV Reply-To: rjshaw@ramius.llnl.gov (Robert Shaw) Organization: Lawrence Livermore National Laboratory Lines: 26 OOPS! I just realize that I misunderstood the question: | | 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? | try: find ~ -exec grep xyz {} \; -print My apologizes... =============================================================================== rjshaw@ramius.llnl.gov _____ ____ ____ ______ R o b / / / / / / / / / / / -------- / --/ / / / / / / / / / --------------------------- /-- / / / / / / / / S h a w /____/ /_/_/ /_/_/ /_____/ The Cosby's are precisely what's wrong with television today... ===============================================================================