Thanks for all the input.

The head / tail solution would work, but isn't very scalable.  I did
something similar on another file of comparable size and it took a long time
to complete.

The line numbers are 4million to 4million + some odd hundred thousand, just
to give an idea of the size.

The sed solution looks very tempting, but i've never used it before so
that's one approach I'll look into.

perl -ne 'print if 20 .. 50' file looks perfect but I totally don't
understand it....

I'm looking to develop a general solution b/c I foresee having to do this
kind of stuff on other logs, some of which are larger than 1GB, so a
oneliner might not work so well.

Thanks again for all the suggestions and please keep them coming!


On Thu, Apr 10, 2008 at 4:22 PM, yitzle <[EMAIL PROTECTED]>
wrote:

> or use sed!
> To print lines 5 through 10:
> sed -ne '5,10p' <filename>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> http://learn.perl.org/
>
>
>

Reply via email to