title: using sed substitute with a bash variable
body: <p>I'm trying to:</p>
  
  <pre><code>sed -i s/installpath/"$INSTALL_PATH"/ /tmp/myscript.conf
  </code></pre>
  
  <p>when $INSTALL_PATH is just a string everything works. but if install path is an actual path (II guess the '/' char is the problem) like /home/ubuntu/install_script. then It breaks with the following error message:</p>
  
  <blockquote>
    <blockquote>
      <p>sed: -e expression #1, char 16: unknown option to `s'</p>
    </blockquote>
  </blockquote>
  
  <p>btw: I tried without the "" around $INSTALL_PATH. didn't work</p>
  
  <p>Thanks for the help!</p>