Check out "man dd", it may be able to do this.
> -----Original Message-----
> From: Volker Kuhlmann [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, 24 June 2003 3:54 p.m.
> To: [EMAIL PROTECTED]
> Subject: truncate file with shell
>
>
> Is there a shell command which can truncate a file to the
> given number of bytes? It would need to work with large files
> (i.e. >> 2GB).
>
> Thanks,
>
> Volker
>
> --
> Volker Kuhlmann is possibly list0570
> with the domain in header
> http://volker.dnsalias.net/ Please do not CC list
> postings to me.
>