2010/1/22 Joseph Xu > > Also, the title of this thread is a bit misleading. As far as I know, > find doesn't have the option to test for the contents of files, so even > with find you'd have to use xargs and grep. > Let me explain then. In Linux I'd use something like find . -type f -exec grep -l foo {} \; So, you are right about the need to use grep. On the other hand, the linux find command takes care of the repetition... R