title: Fixing quote escaping with bash script and sed
body: <p>I have a bash file processing some CSVs.  Some of the input CSVs are not formatted properly, so I want to fix them with sed.  The quotes are escaped like <code>\"</code> and not like <code>""</code>, so I call sed to change this.  In the command line this works perfectly:</p>
  
  <pre><code>sed -i 's/\\"/""/gi' input.csv
  </code></pre>
  
  <p>But inside a bash script this seems to do nothing.  I guess it has something to do with quotes and escape sequences, but what is the solution?</p>