title: Unix shell - copy first 300 lines to new file
body: <p>I've been trying to solve this for days and nothings seems to work.</p>
  
  <p>Copy first 300 lines of a file1 to a new file called file2. This file contains phone number information, already sorted by last name, which is the first field in each record.</p>
  
  <pre><code> head -300 file1 &gt; file2
  </code></pre>
  
  <p>should be the answer but it will not accept.</p>
  
  <p>Any and all help appreciated.</p>