From: JenC Date: 2009-03-25T01:27:02+09:00 Subject: Re: problem with gsub! in file 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 pm, Adam Gardner wrote: > Adam Gardner wrote: > > ruby -p -i.bak e 'gsub(/foo/,"bar")'  myfile.vcproj > > Er, sorry, make that ruby -p -i.bak -e 'gsub(/foo/,"bar")' > myfile.vcproj > -- > Posted viahttp://www.ruby-forum.com/.