Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Apr 2003 12:39:28 +0200
From:      Stijn Hoop <stijn@win.tue.nl>
To:        CARTER Anthony <a.carter@cordis.lu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: cleaning out files
Message-ID:  <20030404103927.GC97057@pcwin002.win.tue.nl>
In-Reply-To: <200304041227.46615.a.carter@intrasoft.lu>
References:  <200304041227.46615.a.carter@intrasoft.lu>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030404103927.GC97057>