At 2004-11-03T14:55:15+1300, Nick Rout wrote:
> cd /usr/samba/wp (wherein lies a number of word docs)
> grep -i string1 * -r
As I think someone already suggested, do this instead:
$ grep -ir string .
> none of the solutions posted earlier about the similar problem work,
> because some of the file names have single quotes
> (like "Bill Smith NRR's bill 20 January 2004.doc")
> find . -type f |xargs grep string1
Again, as I think has already been suggested (certainly by at least
Volker), use the GNU extensions to find (-print0) and xargs (-0):
$ find . -type f -print0 | xargs -0 grep string1
Cheers,
-mjg
--
Matthew Gregan |/
/| [EMAIL PROTECTED]