From owner-freebsd-questions@FreeBSD.ORG Fri Apr 4 06:38:18 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 0958537B401 for ; Fri, 4 Apr 2003 06:38:18 -0800 (PST) Received: from dire.bris.ac.uk (dire.bris.ac.uk [137.222.10.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1525543F85 for ; Fri, 4 Apr 2003 06:38:17 -0800 (PST) (envelope-from Jan.Grant@bristol.ac.uk) Received: from mail.ilrt.bris.ac.uk by dire.bris.ac.uk with SMTP-PRIV with ESMTP; Fri, 4 Apr 2003 15:38:07 +0100 Received: from cmjg (helo=localhost) by mail.ilrt.bris.ac.uk with local-esmtp (Exim 3.16 #1) id 191SJh-0005ts-00; Fri, 04 Apr 2003 15:37:17 +0100 Date: Fri, 4 Apr 2003 15:37:17 +0100 (BST) From: Jan Grant X-X-Sender: cmjg@mail.ilrt.bris.ac.uk To: CARTER Anthony In-Reply-To: <200304041227.46615.a.carter@intrasoft.lu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: Jan Grant cc: freebsd-questions@freebsd.org Subject: Re: cleaning out files 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: Fri, 04 Apr 2003 14:38:18 -0000 On Fri, 4 Apr 2003, CARTER Anthony wrote: > How do I clean the contents of text files without actually removing the files? man 1 truncate This is a command-line utility that directly wraps the appropriate system call. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/ stty intr ^m