Subject: Re: Suggestion: inclusion of the truncate(1) utility into the tree
To: None <tech-userlevel@netbsd.org, tech@openbsd.org>
From: ITOH Yasufumi <itohy@netbsd.org>
List: tech-userlevel
Date: 07/24/2000 09:17:34
In article <20000722013309.801A490@proven.weird.com>
woods@weird.com writes:

> Sorry but no, you cannot.  It is not possible to do from the shell, awk,
> dd, cat, or whatever, what truncate(2) and ftruncate(2) do, at least not
> without building a truncate() call into the tool of your choice.  You

dd of=file_to_truncate bs=1 seek=new_size count=1 </dev/null

:-)
-- 
ITOH, Yasufumi <itohy@netbsd.org>