<p>Trying to debug an issue with a server and my only log file is a 20GB log file (with no timestamps even! Why do people use <code>System.out.println()</code> as logging? In production?!)</p>

<p>Using grep, I've found an area of the file that I'd like to take a look at, line 347340107.</p>

<p>Other than doing something like</p>

<pre><code>head -&lt;$LINENUM + 10&gt; filename | tail -20 
</code></pre>

<p>... which would require <code>head</code> to read through the first 347 million lines of the log file, is there a quick and easy command that would dump lines 347340100 - 347340200 (for example) to the console?</p>

<p><strong>update</strong> I totally forgot that grep can print the context around a match ... this works well. Thanks!</p>

with GNU-grep you could just say
```
grep --context=10 ...
```