From: Reinder Verlinde Date: 2005-12-27T19:57:54+09:00 Subject: Re: Found a neat trick for doing recursive one-liners In article <810a540e0512262005s3e4c971bl2f2915954c34965f@mail.gmail.com>, Pat Maddox wrote: > Or you can use the tools designed for finding stuff :) > > find . -name "*.txt" | xargs grep Hello > > That version will work for all files. Not quite. For better (maximum?) robustness, pass '-print0' to find and '-0' to xargs. That will handle filenames with spaces and/or quotes correctly. (If your filenames have bytes with binary value zero in them, you still will be out of luck) Reinder