title: sed in bash to overrewrite to same file
body: <p>I want to remove the headers of a file and replace its content without headers in the same file.</p>
  
  <p>Example: <code>file_student</code></p>
  
  <pre><code>name age
  XYS 24
  RTF 56
  </code></pre>
  
  <p>The output should be:</p>
  
  <pre><code>XYS 24
  RTF 56
  </code></pre>
  
  <p>The scenario is that I do not want to create any new file for this change. Can <code>sed</code> do this?</p>
  
  <p>I tried:</p>
  
  <pre><code>sed 1d /tmp/file_student.txt |
  hadoop fs -copyfromLocal /tmp/file_student.txt /tmp/file_student_no_header.txt
  </code></pre>
  
  <p>But that does not work. Any help is appreciated!</p>