Date: Fri, 4 Apr 2003 03:00:52 -0800 From: Jim <jconner@enterit.com> To: Stijn Hoop <stijn@win.tue.nl>, CARTER Anthony <a.carter@cordis.lu> Cc: freebsd-questions@freebsd.org Subject: Re: [mail_lists] Re: cleaning out files Message-ID: <200304041102.h34B2VVa024586@quasi.concon.homeip.net> In-Reply-To: <20030404103927.GC97057@pcwin002.win.tue.nl> References: <200304041227.46615.a.carter@intrasoft.lu> <20030404103927.GC97057@pcwin002.win.tue.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 04 April 2003 02:39, Stijn Hoop wrote: The best way is simply doing: bash]$ > filename This clears the file out without destroying any open file descriptors on the file. - Jim | 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 | > files? | | $ 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 -- - Jim
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304041102.h34B2VVa024586>