title: Replace forward slash with double backslash enclosed in double quotes
body: <p>I'm desperately trying to replace a forward slash (<code>/</code>) with double backslash enclosed in double quotes (<code>"\\"</code>) </p>
  
  <p>but </p>
  
  <pre><code>a=`echo "$var" | sed 's/^\///' | sed 's/\//\"\\\\\"/g'`
  </code></pre>
  
  <p>does not work, and I have no idea why. It always replaces with just one backslash and not two</p>