Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!hellgate.utah.edu!mmoore From: mmoore%hellgate.utah.edu@cs.utah.edu (Michael Moore) Newsgroups: comp.unix.questions Subject: grep Keywords: grep, recursive Message-ID: <1991Apr14.214414.9815@hellgate.utah.edu> Date: 15 Apr 91 03:44:14 GMT Reply-To: rnelson%hell.utah.edu@cs.utah.edu Organization: University of Utah, CS Dept., Salt Lake City Lines: 29 Does anyone know if there is an easy way to recursively search for a pattern down the entire file tree of a directory? I have tried : grep -R pattern * grep -r pattern * grep -R pattern dirname grep -r pattern dirname I don't know what to do. If there were a way to recursively cat files or something similar, I could pipe that to grep, but I can't find that either. ANY help would be greatly appreciated. (P.S. Is this the proper newsgroup to post this question to?) ( If not, please let me know which one is. ) Michael Moore University of Utah <><><><><><><>><><><><><><><><><><><><><><> <>He spoke seldom, ate little, slept less<> <> -Ursula K. LeGuin <> <> *Wizard of Earthsea* <> <><><><<><><><><><><><><><><><><><><><><><>