title: How to to delete a line given with a variable in sed?
body: <p>I am attempting to use <code>sed</code> to delete a line, read from user input, from a file whose name is stored in a variable. Right now all <code>sed</code> does is print the line and nothing else.</p>
  
  <p>This is a code snippet of the command I am using:</p>
  
  <pre><code>FILE="/home/devosion/scripts/files/todo.db"
  read DELETELINE
  sed -e "$DELETELINE"'d' "$FILE"
  </code></pre>
  
  <p>Is there something I am missing here?</p>
  
  <p><strong>Edit:</strong> Switching out the <code>-e</code> option with <code>-i</code> fixed my woes!</p>