title: Unix script to delete the first line of a file on a Mac
body: <p>On my Mac, when I try to run: </p>
  
  <pre><code>sed -i 2d file.csv
  </code></pre>
  
  <p>from the answer to <a href="https://stackoverflow.com/questions/9633114/unix-script-remove-first-line-of-csv-file">Unix script to remove the first line of a CSV file</a>, I get the following error:</p>
  
  <pre><code>sed: 1: "file.csv": invalid command code f
  </code></pre>
  
  <p>What can I do if I would like to delete the first two lines of <code>file.csv</code>?</p>