From: Bill Marcum on
On 2008-04-24, mike-yue <needpassion(a)gmail.com> wrote:
>
>
> suppose there are some folders and files in folder /tmp/noname.com
> like
> /tmp/noname.com/html/School Photos/help me.html
> /tmp/noname.com/www bak/html/cam/pics/many thanks.html
> /tmp/noname.com/test/old test/god bless us.html
> ......
>
> some of the files have a line including "global warming", like
> ...
> we all know global warming, blah, blah
> ...
>
> My shell script could not treat the spaces well, and I don't know how
> to handle it.
> Any hints would be appreciated!!

find . -name '* *' -print0 | xargs -0 grep "global warming"