From owner-freebsd-questions@FreeBSD.ORG Mon Dec 8 20:30:53 2003 Return-Path: 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 AE74616A4CE for ; Mon, 8 Dec 2003 20:30:53 -0800 (PST) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id B804D43D1D for ; Mon, 8 Dec 2003 20:30:52 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.10/8.12.10) id hB94UkcN076674; Mon, 8 Dec 2003 22:30:46 -0600 (CST) (envelope-from dan) Date: Mon, 8 Dec 2003 22:30:46 -0600 From: Dan Nelson To: "Kevin D. Kinsey, DaleCo, S.P." Message-ID: <20031209043046.GC2435@dan.emsphone.com> References: <20031209015125.74977.qmail@web14806.mail.yahoo.com> <200312090259.23677@harrymail> <3FD54A37.8050503@daleco.biz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3FD54A37.8050503@daleco.biz> X-OS: FreeBSD 5.2-BETA X-message-flag: Outlook Error User-Agent: Mutt/1.5.5.1i cc: homeyra g cc: freebsd-questions@freebsd.org cc: Harald Schmalzbauer Subject: Re: a technical how to X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Dec 2003 04:30:53 -0000 In the last episode (Dec 08), Kevin D. Kinsey, DaleCo, S.P. said: > Harald Schmalzbauer wrote: > >On Tuesday 09 December 2003 02:51, homeyra g wrote: > >>So, I hope this is the right address for this type of question. If > >>not would you please forward this and/or let me know the correct > >>address. > >> > >>Thanks, > >> > >>Here is the question: How to truncate a file from the begining to a > >>certain point in the file? If you're writing a script, use the /usr/bin/truncate command. If you're writing a C program, use the truncate() function. -- Dan Nelson dnelson@allantgroup.com