title: Replace dollar sign with sed
body: <p>I try to replace all dollar signs in a string using sed. However, not only the dollar sign gets replaced but the whole string that follows.</p>
  
  <p><code>$ echo "abc $def ghi" | sed 's/$//g'</code><br>
  <code>$ abc  ghi</code><br></p>
  
  <p>If at least one number is following the dollar sign only the part before the first non-number gets replaced:</p>
  
  <p><code>$ echo "abc $123def ghi" | sed 's/$//g'</code><br>
  <code>$ abc def ghi</code><br></p>
  
  <p>What is going on?</p>