Subject: Re: Suggestion: inclusion of the truncate(1) utility into the tree
To: Christos Zoulas <email@example.com>
From: Ignatios Souvatzis <firstname.lastname@example.org>
Date: 08/28/2000 14:27:17
On Sun, Jul 30, 2000 at 12:01:14AM +0000, Christos Zoulas wrote:
> In article <20000724100514.A8673@theory.cs.uni-bonn.de>,
> Ignatios Souvatzis <email@example.com> wrote:
> > On Mon, Jul 24, 2000 at 12:19:56AM -0700, Greywolf wrote:
> > > Greg, I believe that the skip= parameter has been there for quite some
> > > time... 4.3 is verifiable; the man page which states "4th Berkeley
> > > Distribution" implies as far back as 4.0 (or 4.1 if there was no 4.0);
> > > I'm willing to place a bet on SVR0.
> > Uhm, SunOS 4. is 4.3 based, right?
> > It quietly fails there, leaving the file truncated to length zero:
> > trace(8) shows that the output file is opened with creat(2), lseek'ed
> > a couple of times, then never written, never explicitly closed, then
> > exit(0) is called.
> You want notrunc...
dd of=file_to_truncate bs=1 seek=new_size count=1 notrunc </dev/null