title: How can I escape a double quote inside double quotes?
body: <p>How can I escape double quotes inside a double string in Bash?</p>
  
  <p>For example, in my shell script</p>
  
  <pre><code>#!/bin/bash
  
  dbload="load data local infile \"'gfpoint.csv'\" into table $dbtable FIELDS TERMINATED BY ',' ENCLOSED BY '\"' LINES TERMINATED BY \"'\n'\" IGNORE 1 LINES"
  </code></pre>
  
  <p>I can't get the <code>ENCLOSED BY '\"'</code> with double quote to escape correctly. I can't use single quotes for my variable, because I want to use variable <code>$dbtable</code>.</p>