|
Prev: how to find out all files or folders which has space in the name, and includes specific string recursively?
Next: how to find out all files or folders which has space in the name, and includes specific string recursively?
From: Bill Marcum on 24 Apr 2008 19:28 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" |