Subject: Re: Suggestion: inclusion of the truncate(1) utility into the tree
To: John Hawkinson <jhawk@MIT.EDU>
From: Andrew Brown <>
List: tech-userlevel
Date: 07/24/2000 11:57:37
>dd if=/dev/null of=file-to-truncate seek=howevermuchtotruncate

don't forget bs=1.  seek is in terms of block size, which defaults to
512 bytes.  :)

my $.02...truncate(1) ought to behave as touch(1) does, with the
creation of files and a default truncation size of 0.  any other size
you want should *not* be another parameter, but a argument to an
option.  like touch(1).

digression: would anyone like it if cp(1) and mv(1) (and maybe
others?) both had a "-t target" options so that you could do things

    find foo -type f -name \*.bar | xargs mv -t otherthere

or is it just me?

|-----< "CODE WARRIOR" >-----|             * "ah!  i see you have the internet (Andrew Brown)                that goes *ping*!"       * "information is power -- share the wealth."