This is the mail archive of the
cygwin-talk@cygwin.com
mailing list for the cygwin project.
Re: find prints wrong file size for files >2GB
- From: Brian Dessent <brian at dessent dot net>
- To: Talk Amongst Yourselves <cygwin-talk at cygwin dot com>
- Date: Mon, 06 Dec 2004 04:27:54 -0800
- Subject: Re: find prints wrong file size for files >2GB
- Organization: My own little world...
- References: <41B43182.9AEE4F96@hot.pl> <20041206120515.GB332@efn.org>
- Reply-to: Talk Amongst Yourselves <cygwin-talk at cygwin dot com>
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