title: Shell script cut the beginning and the end of a file
body: <p>So I have a file and I'd like cut the first 33 lines and the last 6 lines of it. What I am trying to do is get the whole file in a cat command (cat file) and then use the "head" and "tail" commands to remove those parts, but I don't know how to do so.
  Eg (this is just the idea)</p>
  
  <pre><code>cat file - head -n 33 file - tail -n 6 file
  </code></pre>
  
  <p>How am I supposed to do this? Is it possible to do it with "sed" (how)? Thanks in advance.</p>