title: Inserting text from a file to the beginning of another file - bash
body: <p>I am trying to insert some copy-right information into the beginning of some source files. I know that using sed in the following way:</p>
  
  <pre><code>sed "1iSome copyrighted information." sample.txt
  </code></pre>
  
  <p>would insert the text "Some copyrighted information" to the beginning of sample.txt.<br>
  I need to insert text from a file to the beginning of sample.txt. Is there any way in sed that I could use a <code>cat</code> command for the above purpose, say something like the following?:</p>
  
  <pre><code>sed "1i{cat header.txt}" sample.txt
  </code></pre>
  
  <p>I have googled for the above and have not found exactly what I have been looking for. Any help on this is most welcome.</p>
  
  <p>Thanks.</p>