title: Truncating the first 100MB of a file in linux
body: <p>I am referring to <a href="https://stackoverflow.com/questions/290700/how-can-you-concatenate-two-huge-files-with-very-little-spare-disk-space">How can you concatenate two huge files with very little spare disk space?</a></p>
  
  <p>I'm in the midst of implementing the following:</p>
  
  <ol>
  <li>Allocate a sparse file of the combined size.</li>
  <li>Copy 100Mb from the end of the second file to the end of the new file.</li>
  <li>Truncate 100Mb of the end of the second file</li>
  <li>Loop 2&amp;3 till you finish the second file (With 2. modified to the correct place in the destination file).</li>
  <li>Do 2&amp;3&amp;4 but with the first file.</li>
  </ol>
  
  <p>I would like to know if is there anyone there who are able to "truncate" a given file in linux? The truncation is by file size, for example if the file is 10GB, I would like to truncate the first 100MB of the file and leave the file with remaining 9.9GB. Anyone could help in this?</p>
  
  <p>Thanks</p>