Subject: Re: Suggestion: inclusion of the truncate(1) utility into the tree
To: None <tech-userlevel@netbsd.org>
From: Greg A. Woods <woods@weird.com>
List: tech-userlevel
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      <gwoods@acm.org>      <robohack!woods>
Planix, Inc. <woods@planix.com>; Secrets of the Weird <woods@weird.com>