title: How to delete a specific line from a file in unix?
body: <p>I have a very large file from which I need to delete a specific line (line number 941573 )</p>
  
  <p>I'm somewhat new to this environment, but I've been googling the problem to no avail.</p>
  
  <p>I've tried using the sed command as such, but it doesn't seem to be working </p>
  
  <pre><code>sed -e '941572,941574d' filenameX &gt; newfilenameY
  </code></pre>
  
  <p>I've also tried</p>
  
  <pre><code>sed -e '941573d' filenameX &gt; newfilenameY
  </code></pre>
  
  <p>Yet the 'newfilenameY' file and the original file 'filenameX' both still contain the line that I'm trying to delete. It's a fastq file, though I don't see how that would make any difference. Like I said I'm new to unix so maybe I've gotten the sed command wrong</p>