|
Prev: how to find out all files or folders which has space in the name, and includes specific string recursively?
Next: Discount, ED hardy / Lacoste / POLO / Boss / Smet / CA / Armani T-shirts, Wholesale
From: Sam on 24 Apr 2008 19:38 mike-yue writes: > 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 $PATHNAME -type f -name '* *' -print | xargs grep 'global warming hoax' |