title: Print specific lines of a file in Terminal
body: <p>This seems pretty silly, but I haven't found a tool that does this, so I figured I'd ask just to make sure one doesn't exist before trying to code it up myself:</p>
  
  <p>Is there any easy way to <code>cat</code> or <code>less</code> specific lines of a file?</p>
  
  <p>I'm hoping for behavior like this:</p>
  
  <pre><code># -s == start &amp;&amp; -f == finish
  # we want to print lines 5 - 10 of file.txt
  cat -s 5 -f 10 file.txt
  </code></pre>
  
  <p>Even something a little simpler would be appreciated, but I just don't know of any tool that does this:</p>
  
  <pre><code># print from line 10 to the end of the file
  cat -s 10 file.txt
  </code></pre>
  
  <p>I'm thinking that both of these functionalities could be easily created with a mixture of <code>head</code>, <code>tail</code>, and <code>wc -l</code>, but maybe there are builtins that do this of which I'm unaware?</p>