On Thu, Apr 10, 2008 at 4:35 PM, Jonathan Mast
<[EMAIL PROTECTED]> wrote:
> 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!

This is an area I really don't have any experience, but I'm going to
sggest that having a log file of that size might be something you want
to avoid. I know some software packages will gzip the log files every
so often and start a new log.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to