This is the mail archive of the cygwin-talk@cygwin.com mailing list for the cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: find prints wrong file size for files >2GB


Yitzchak Scott-Thoennes wrote:

> Now wait a minute; that was *my* testcase!  Oh, well.
> I hearby place that code in the public domain; retroactively for
> Jacek Trzmiel's benefit.
> 
> Would a truncate.exe be welcome in one of the cygwin packages?  I
> kind of thought there was one on some unixes but a search didn't
> turn up anything.

There's no need for a special purpose program to do this.  'dd' has this
capability among many others:

dd if=/dev/zero bs=1 count=0 seek=2G of=filename

Brian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]