Re: Bug#467378: coreutils: Please include a program to truncate files

2008-02-26 Thread Jim Meyering
Paul Eggert <[EMAIL PROTECTED]> wrote: > Jim Meyering <[EMAIL PROTECTED]> writes: >> If you don't mind truncating first, how about this? >> >> true > /var/spool/whatever/foo >> dd bs=1 seek=2G of=/var/spool/whatever/foo < /dev/null > > Also, the latter command works even if the former comma

Re: Bug#467378: coreutils: Please include a program to truncate files

2008-02-26 Thread Pádraig Brady
Jim Meyering wrote: > Paul Eggert <[EMAIL PROTECTED]> wrote: >> Jim Meyering <[EMAIL PROTECTED]> writes: >>> If you don't mind truncating first, how about this? >>> >>> true > /var/spool/whatever/foo >>> dd bs=1 seek=2G of=/var/spool/whatever/foo < /dev/null >> Also, the latter command work

Re: Bug#467378: coreutils: Please include a program to truncate files

2008-02-26 Thread Russell Coker
On Tuesday 26 February 2008 21:03, Pádraig Brady <[EMAIL PROTECTED]> wrote: > > That depends on your definition of "works". > > If you don't mind retaining the first 2GiB of content in > > a preexisting output file, then it works fine. But the initial > > truncation is required if you want to be s

Re: Bug#467378: coreutils: Please include a program to truncate files

2008-02-26 Thread Pádraig Brady
Russell Coker wrote: > On Tuesday 26 February 2008 21:03, Pádraig Brady <[EMAIL PROTECTED]> wrote: >>> That depends on your definition of "works". >>> If you don't mind retaining the first 2GiB of content in >>> a preexisting output file, then it works fine. But the initial >>> truncation is requi