How to extract interval/range of rows from compressed file?
<p>How do I return interval of rows from 100mil rows *.gz file?</p>

<p>Let's say I need 5 mil rows starting from 15mil up to 20mil?</p>

<p>is this the best performing option?</p>

<pre><code>zcat myfile.gz|head -20000000|tail -500
real    0m43.106s
user    0m43.154s
sys     0m9.259s
</code></pre>