Thanks Adam.  I tried this:
ruby -p -i.bak -e 'gsub(/foo/,"bar")'  myfile.vcproj

but them I get a whole load of warnings:
-e:1: warning: Can't do inplace edit for stdio

and the file still doesn't change... any ideas?

best,
Jen




On Mar 24, 4:16=A0pm, Adam Gardner <adam.oddfel... / gmail.com> wrote:
> Adam Gardner wrote:
> > ruby -p -i.bak e 'gsub(/foo/,"bar")' =A0myfile.vcproj
>
> Er, sorry, make that ruby -p -i.bak -e 'gsub(/foo/,"bar")'
> myfile.vcproj
> --
> Posted viahttp://www.ruby-forum.com/.