title: Escaping $ variable in sed over ssh command?
body: <p>I have a command like this:</p>
  
  <pre><code>ssh user@hostname 'sed -e "s|foo|${bar}|" /home/data/base_out.sql &gt; /home/data/out.sql'
  </code></pre>
  
  <p>The sed command is working in local shell. But it is not expanding the variable over ssh command. Thanks!</p>