From owner-freebsd-questions@FreeBSD.ORG Fri Apr 4 02:40:02 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 E814A37B401 for ; Fri, 4 Apr 2003 02:40:02 -0800 (PST) Received: from pcwin002.win.tue.nl (pcwin002.win.tue.nl [131.155.71.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id F260A43FAF for ; Fri, 4 Apr 2003 02:40:01 -0800 (PST) (envelope-from stijn@pcwin002.win.tue.nl) Received: from pcwin002.win.tue.nl (orb_rules@localhost [127.0.0.1]) by pcwin002.win.tue.nl (8.12.8/8.12.8) with ESMTP id h34AdSSZ097710; Fri, 4 Apr 2003 12:39:28 +0200 (CEST) (envelope-from stijn@pcwin002.win.tue.nl) Received: (from stijn@localhost) by pcwin002.win.tue.nl (8.12.8/8.12.8/Submit) id h34AdSKj097709; Fri, 4 Apr 2003 12:39:28 +0200 (CEST) Date: Fri, 4 Apr 2003 12:39:28 +0200 From: Stijn Hoop To: CARTER Anthony Message-ID: <20030404103927.GC97057@pcwin002.win.tue.nl> References: <200304041227.46615.a.carter@intrasoft.lu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9jxsPFA5p3P2qPhR" Content-Disposition: inline In-Reply-To: <200304041227.46615.a.carter@intrasoft.lu> User-Agent: Mutt/1.4i X-Bright-Idea: Let's abolish HTML mail! 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 10:40:03 -0000 --9jxsPFA5p3P2qPhR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Apr 04, 2003 at 12:27:46PM +0200, CARTER Anthony wrote: > How do I clean the contents of text files without actually removing the f= iles? $ echo -n > $FILE Works for me, there are various other ways. You will end up with a 0-byte file, is that what you mean by 'cleaning'? --Stijn --=20 I really hate this damned machine I wish that they would sell it. It never does quite what I want But only what I tell it. --9jxsPFA5p3P2qPhR Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+jWDfY3r/tLQmfWcRApn/AJ9YyJ9JhBYFitTffQzwDYaIx7vxYACcCCQQ 7rkI6rlVOyDwOcDD6+D6E1s= =d/LZ -----END PGP SIGNATURE----- --9jxsPFA5p3P2qPhR--