title: How to file split at a line number
body: <p>I want to split a 400k line long log file from a particular line number.</p>
  
  <p>For this question, lets make this an arbitrary number 300k.</p>
  
  <p>Is there a linux command that allows me to do this (<strong>within the script</strong>)?</p>
  
  <p>I know <code>split</code> lets me split the file in equal parts either by size or line numbers but that's not what I want. I want to the first 300k in one file and the last 100k in the second file.</p>
  
  <p>Any help would be appreciated. Thanks!</p>
  
  <p><strong>On second thoughts this would be more suited to the superuser or serverfault site.</strong></p>