On Wed, 03 Nov 2004 15:09:52 +1300 Matthew Gregan <[EMAIL PROTECTED]> wrote:
> 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 . no i think it was grep -rn, which seemed to do nothing after a very long time. thereofre didn't investigate further. > > > 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 > I saw that but Volker's suggestion referred to gnufind ... Which I perhaps took too literally as there is no gnufind on my system. I now assume that he meant 'the gnu version of find" > Cheers, > -mjg Thanks again, you are very knowledgeable and your posts informative, if sometimes terse :-) [i guess the command line is terse otherwise we would be typing list not ls and changedirectory not cd] > -- > Matthew Gregan |/ > /| [EMAIL PROTECTED] -- Nick Rout <[EMAIL PROTECTED]>
