> You can do that with sed:
> 
> grep -lr "stringToReplace" | xargs sed -i -e "s/stringToReplace//g"

Don't you need a * after the "stringToReplace"?  Also, my sed doesn't
have -i option.  Finally, my sed is sending the output to stdout instead
of replacing the file.

So, what am I missing here?  I was just curious because this seems quite
useful to me.

-- 
Phillip Hellewell <[EMAIL PROTECTED]>

Attachment: pgp00000.pgp
Description: PGP signature

_______________________________________________
newbies mailing list
[EMAIL PROTECTED]
http://phantom.byu.edu/cgi-bin/mailman/listinfo/newbies

Reply via email to