in reply to Re: peeling the top 10 lines from a file
in thread peeling the top 10 lines from a file

Why are you bailing on blank lines? That wasn't specified in the OP, unless I'm missing something. Which is entirely possible, given my current caffeine level (low).
  • Comment on Re^2: peeling the top 10 lines from a file

Replies are listed 'Best First'.
Re^3: peeling the top 10 lines from a file
by davidrw (Prior) on May 16, 2005 at 19:03 UTC
    I wasn't at first, then I re-read OP which said "looking for an empty line at the top of a file", and made me re-consider and add it in. I still don't know if bailing on blank lines is what the OP really needs/or wants, but from that quote i think it's possible so i figured i'd just throw it in and comment it and let OP go from there...

    Maybe i read too far into it -- none of the other responsers intrepeted it that way, but maybe they were going just off of the sample code...