Re:Remove first 300M lines from 700 GB file on 1TB disk
by netmonk on Tuesday September 22, 2020 @09:34AM
(#24554199)
More over, how dd deal with EOL ? and counting them ?
[ Parent
| on HN ]
Re:Remove first 300M lines from 700 GB file on 1TB disk
by jrochkind1 on Tuesday September 22, 2020 @11:29AM
(#24555641)
I believe it doesn't, and the solution in the OP first counts EOLs to get the byte offset you want, then tells dd what to do just in terms of byte offsets.