title: Delete lines containing pattern at the end of line
body: <p>Quite certainly I miss something basic. My file contains lines like</p>
  
  <pre><code>fooLOCATION=sdfmsvdnv
  
  fooLOCATION=
  
  barLOCATION=sadssf
  
  barLOCATION=
  </code></pre>
  
  <p>and I want to delete all lines ending with <code>LOCATION=</code>.</p>
  
  <pre><code>sed -i '/LOCATION=$/d' file
  </code></pre>
  
  <p>does not do, it deletes nothing, and I have tried endless variations, but I don't get it. What inline sed command can do this?</p>