Re: Bug#467378: coreutils: Please include a program to truncate files
From:
Russell Coker
Subject:
Re: Bug#467378: coreutils: Please include a program to truncate files
Date:
Tue, 26 Feb 2008 10:28:23 +1100
User-agent:
KMail/1.9.5
On Tuesday 26 February 2008 10:08, Paul Eggert <address@hidden> wrote:
> > dd bs=1 seek=2G of=/var/spool/whatever/foo < /dev/null
>
> Also, the latter command works even if the former command is omitted.
> That is, by itself, that invocation of dd resizes
> /var/spool/whatever/foo to 2 GiB, discarding or extending the file as
> needed, which is what the original request asked for.
Yes, that does it.