bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cut fails with "cut: memory exhausted" when taking a large slice


From: Mordy Ovits
Subject: Re: cut fails with "cut: memory exhausted" when taking a large slice
Date: Wed, 21 Apr 2004 17:34:35 -0400
User-agent: KMail/1.5.3

On Wednesday 21 April 2004 05:02 pm, Jim Meyering wrote:
> dd is probably the best choice, then.
>
> Using two separate processes is best, unless you can
> find a reasonably large input block size that evenly divides both
> the initial offset and the number of bytes you want to output.
>
> Then dd will use lseek to skip past the initial 1*NUM bytes.
>
> ( dd ibs=1 skip=N_SKIP count=0 && dd ibs=4096 count=100725 ) < BIG > out
>
> since 4096 * 100725 == 412569600.

Very clever.  I'll give it a try.

Thanks,
Mordy
-- 
Mordy Ovits
Network Security
Bloomberg L.P.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]