title: Get line from file at specified byte offset
body: <p>I have a file with a bunch of lines. I have a list of the bytes offsets corresponding with the start of each line. I want each line that corresponds with the byte offset. Is there a way to do this in unix, perl or python? I have to do this at a much larger scale than described.</p>
  
  <p>File:</p>
  
  <pre><code>abcd
  bcde
  cdef
  </code></pre>
  
  <p>Byte Offsets:</p>
  
  <pre><code>0
  10
  </code></pre>
  
  <p>Desired Output:</p>
  
  <pre><code>abcd
  cdef
  </code></pre>