From owner-freebsd-questions@FreeBSD.ORG Sun Jun 26 00:06:07 2005 Return-Path: X-Original-To: questions@freebsd.org 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 5609D16A41C for ; Sun, 26 Jun 2005 00:06:07 +0000 (GMT) (envelope-from svein-freebsd-questions@theloosingend.net) Received: from merke.itea.ntnu.no (merke.itea.ntnu.no [129.241.7.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id 00B0C43D49 for ; Sun, 26 Jun 2005 00:06:06 +0000 (GMT) (envelope-from svein-freebsd-questions@theloosingend.net) Received: from localhost (localhost [127.0.0.1]) by merke.itea.ntnu.no (Postfix) with ESMTP id CC6FA13C40E for ; Sun, 26 Jun 2005 02:06:05 +0200 (CEST) Received: from maren.thelosingend.net (maren.math.ntnu.no [129.241.211.48]) by merke.itea.ntnu.no (Postfix) with SMTP for ; Sun, 26 Jun 2005 02:06:05 +0200 (CEST) Received: (qmail 15858 invoked by uid 1001); 26 Jun 2005 02:06:05 +0200 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 26 Jun 2005 02:06:05 +0200 Date: Sun, 26 Jun 2005 02:06:05 +0200 (CEST) From: Svein Halvor Halvorsen X-X-Sender: sveinhal@maren.thelosingend.net To: Dan Nelson , Jonathan Chen In-Reply-To: <20050626000245.GC38082@osiris.chen.org.nz> Message-ID: <20050626020435.V15834@maren.thelosingend.net> References: <20050626015255.D15610@maren.thelosingend.net> <20050626000245.GC38082@osiris.chen.org.nz> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Content-Scanned: with sophos and spamassassin at mailgw.ntnu.no. Cc: questions@freebsd.org Subject: Re: Chop off end of file X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Jun 2005 00:06:07 -0000 * Dan Nelson [2005-06-25 19:01 -0500] > Try the "truncate" command. * Jonathan Chen [2005-06-26 12:02 +1200] > truncate(1) is your friend. Thanks! I just figured this myself, after remembering that this operation is called to truncate. (Not easy when english is not one's first language)