From owner-freebsd-questions@FreeBSD.ORG Sun Jun 26 00:04:21 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 45CAD16A41C for ; Sun, 26 Jun 2005 00:04:21 +0000 (GMT) (envelope-from svein-freebsd-questions@theloosingend.net) Received: from fri.itea.ntnu.no (fri.itea.ntnu.no [129.241.7.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED66743D1D for ; Sun, 26 Jun 2005 00:04:20 +0000 (GMT) (envelope-from svein-freebsd-questions@theloosingend.net) Received: from localhost (localhost [127.0.0.1]) by fri.itea.ntnu.no (Postfix) with ESMTP id 9A58E80BD for ; Sun, 26 Jun 2005 02:04:19 +0200 (CEST) Received: from maren.thelosingend.net (maren.math.ntnu.no [129.241.211.48]) by fri.itea.ntnu.no (Postfix) with SMTP for ; Sun, 26 Jun 2005 02:04:19 +0200 (CEST) Received: (qmail 15836 invoked by uid 1001); 26 Jun 2005 02:04:19 +0200 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 26 Jun 2005 02:04:19 +0200 Date: Sun, 26 Jun 2005 02:04:19 +0200 (CEST) From: Svein Halvor Halvorsen X-X-Sender: sveinhal@maren.thelosingend.net To: questions@freebsd.org In-Reply-To: <20050626015255.D15610@maren.thelosingend.net> Message-ID: <20050626020332.L15834@maren.thelosingend.net> References: <20050626015255.D15610@maren.thelosingend.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Content-Scanned: with sophos and spamassassin at mailgw.ntnu.no. Cc: 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:04:21 -0000 * Svein Halvor Halvorsen [2005-06-26 01:57 +0200] > Is it possible to just chop off the end of a file, without making a copy I figured it out. Seems truncate(1) was it. Svein Halvor