<div dir="ltr">Friends:<div><br></div><div>I have a html file on my box that looks like</div><div><br></div><div><table id="${id}_pushbutton"></div><div><br></div><div>...</div><div>...</div><div>...</div><div>
...</div><div></table></div><div><br></div><div><div id="${id}_background" /></div><div><br></div><div><br></div><div><br></div><div>When I run them to the following code</div><div><br></div><div><div>
Dir.glob(fileTypes) do |theFile|</div><div> puts theFile</div><div> data=File.read(theFile)</div><div> puts data</div><div> #output_of_gsub=data.gsub(/::STATIC_TAG_WITH_VER::/, "$static_ver_with_tag")</div>
<div> #print data</div><div> #puts output_of_gsub</div><div> File.open("/tmp/cool.txt", "w") {|file| file.puts data}</div><div> end</div><div>end</div>
</div><div><br></div><div>The output I see is strange</div><div><br></div><div>The output looks like </div><div>id="com.adp.pid:configuration:jar:2.2-SNAPSHOT_toolbar_buttons"<br></div><div><br></div><div><br></div>
<div>so essentilly the ${id} is getting interpreted either by the read or by the puts.</div><div><br></div><div>Any suggestion on how to read without interpreting ${id} please ?</div><div><br></div><div>-Narahari</div><div>
<br></div><div><br></div></div>