From owner-freebsd-questions Sat Dec 14 4:45:29 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 745D037B406 for ; Sat, 14 Dec 2002 04:45:28 -0800 (PST) Received: from sima.sita.kiev.ua (sima.sita.kiev.ua [193.193.223.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id C045D43EC2 for ; Sat, 14 Dec 2002 04:45:25 -0800 (PST) (envelope-from ay@sita.kiev.ua) Received: (from ay@localhost) by sima.sita.kiev.ua (8.Who.Cares/8.Who.Cares) id gBECjLk55305; Sat, 14 Dec 2002 14:45:21 +0200 (EET) (envelope-from ay) Date: Sat, 14 Dec 2002 14:45:21 +0200 (EET) Message-Id: <200212141245.gBECjLk55305@sima.sita.kiev.ua> From: ay@sita.kiev.ua To: fbsd-q@sima.sita.kiev.ua Subject: Re: How to truncate a file in the beginning X-Newsgroups: lucky.freebsd.questions In-Reply-To: <20021213141110.A99587@curry.mchp.siemens.de.lucky.freebsd.questions> Organization: SitaNet User-Agent: tin/1.4.1-19991201 ("Polish") (UNIX) (FreeBSD/4.5-RELEASE (i386)) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In article <20021213141110.A99587@curry.mchp.siemens.de.lucky.freebsd.questions> you wrote: > Are there any special features in FreeBSD that I can use > to truncate a file in the beginning? > Let's assume I have a 50GB file. Only the last 10GB are > interesting for me and I have to free the first 40GB for > some reason. Of course, I could seek to the appropriate > position and copy the 10GB to a new file and unlink the > old one. The problem is that I don't have a lot of time > to do this so I am looking for something like ftruncate() > but for the beginning... > Any ideas? man head -- AY7-UANIC || AY15-RIPE To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message