title: How to "grep" out specific line ranges of a file
body: <p>There are often times I will <code>grep -n</code> whatever file to find what I am looking for. Say the output is:</p>
  <pre><code>1234: whatev 1
  5555: whatev 2
  6643: whatev 3
  </code></pre>
  <p>If I want to then just extract the lines between 1234 and 5555, is there a tool to do that?  For static files I have a script that does <code>wc -l</code> of the file and then does the math to split it out with tail &amp; head but that doesn't work out so well with log files that are constantly being written to.</p>