Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!gem.mps.ohio-state.edu!ginosko!uunet!mcsun!sunic!tut!santra!sja From: sja@sirius.hut.fi (Sakari Jalovaara) Newsgroups: comp.unix.wizards Subject: Re: recursive grep Message-ID: Date: 25 Aug 89 09:37:41 GMT References: <13710@polyslo.CalPoly.EDU> <1590@cbnewsl.ATT.COM> Sender: news@santra.UUCP Organization: Helsinki University of Technology Lines: 27 In-reply-to: ams@cbnewsl.ATT.COM's message of 23 Aug 89 17:22:34 GMT > find . -type f -print | xargs grep string xargs pops up every couple of months in comp.unix.* but I haven't seen this mentioned yet: Script started on Fri Aug 25 12:24:58 1989 tmp (sirius) 11> touch 'file names can have spaces\ and even newlines in them\!' tmp (sirius) 12> find . -type f -print | xargs grep helloWorld grep: ./file: No such file or directory grep: names: No such file or directory grep: can: No such file or directory grep: have: No such file or directory grep: spaces: No such file or directory grep: and: No such file or directory grep: even: No such file or directory grep: newlines: No such file or directory grep: in: No such file or directory grep: them!: No such file or directory tmp (sirius) 13> exit exit script done on Fri Aug 25 12:26:11 1989 You probably don't want to run "xargs rm" and such as root. ++sja