title: sed and replace string by a $variable
body: <p>I have a little problem.  </p>
  
  <p>I try to replace a string(well a line) by a $variable in a file.</p>
  
  <p>So I use the command :</p>
  
  <pre><code>sed -i -e "s/conf .*/conf = $PATH_CONF/g" generals.conf
  </code></pre>
  
  <p>If PATH_CONF does not contains specials characters like "/", it's working.</p>
  
  <p>But PATH_CONF contains a path(/home/etc.) so it has several "/", then I got an error :</p>
  
  <pre><code> bad flag in substitute command: 'h' 
  </code></pre>
  
  <p>So how must I do to have specials characters in my $variable ? </p>
  
  <p>thanks.</p>