Subject: Re: Suggestion: inclusion of the truncate(1) utility into the tree
To: None <email@example.com>
From: Greg A. Woods <firstname.lastname@example.org>
Date: 07/24/2000 12:08:10
[ On Monday, July 24, 2000 at 11:27:06 (+0200), Alexander Langer wrote: ]
> Subject: Re: Suggestion: inclusion of the truncate(1) utility into the tree
> Thus spake John Hawkinson (jhawk@MIT.EDU):
> > dd if=/dev/null of=file-to-truncate seek=howevermuchtotruncate
> And how do you emulate the -r option?
The same way you implement '-s -10k'or '-s +10k'.
You can find the size of another file with "ls -l", but it would be
better if there were a stat(1) front-end to get all the inode fields in
a more predictable and parsable format! ;-)
(BTW, there is precedent: zsh has a "stat" built-in, as does of course
perl5 and python and tcl too I think).
Greg A. Woods
+1 416 218-0098 VE3TCP <email@example.com> <robohack!woods>
Planix, Inc. <firstname.lastname@example.org>; Secrets of the Weird <email@example.com>