title: Is there a one line way to remove dollar signs from a string via sed?
body: <p>I have a file and am reading it line by line. Some lines have dollar signs in them, and I would like to remove them using sed. So for instance, </p>
  
  <pre><code>echo $line
  </code></pre>
  
  <p>returns </p>
  
  <pre><code>{On the image of {$p$}-adic regulators},
  </code></pre>
  
  <p>On the other hand, </p>
  
  <pre><code>          echo $line | sed 's/\$//g'
  </code></pre>
  
  <p>correctly returns </p>
  
  <pre><code> {On the image of {p}-adic regulators},
  </code></pre>
  
  <p>but </p>
  
  <pre><code> title=`echo $line | sed 's/\$//g'`; echo $title
  </code></pre>
  
  <p>returns</p>
  
  <pre><code> {On the image of {$p$}-adic regulators},
  </code></pre>