title: replace a line in linux file containing special characters
body: <p>Here is an extract from a script showing the variables for the script</p>
  
  <pre><code>PathToPiconPNG="/var/OscamSrvidPicon/picon/19.2E/"
  PathToOscamSrvid="/var/OscamSrvidPicon/picon/19.2E/oscam.srvid"
  PathToPiconTPL="/var/OscamSrvidPicon/oscam_picons/"
  PathToTmp="/tmp/"
  </code></pre>
  
  <p>I want to run this script numerous times replacing (for example) this line:</p>
  
  <pre><code>PathToPiconPNG="/var/OscamSrvidPicon/picon/19.2E/"
  </code></pre>
  
  <p>with this lines</p>
  
  <pre><code>PathToPiconPNG="/var/OscamSrvidPicon/picon/28.2E/"
  </code></pre>
  
  <p>I have tried using sed (I know this example is wrong but you might get what im trying to achieve)</p>
  
  <pre><code>sed 's/{PathToPiconPNG="/var/OscamSrvidPicon/picon/19.2E/"}/{PathToPiconPNG="/var/OscamSrvidPicon/picon/28.2E/"}/g' filename.txt &gt; newfilenam.txt
  </code></pre>
  
  <p>If that is not possible, is there any way that I can set the variable externally from another script</p>