Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Apr 2003 15:37:17 +0100 (BST)
From:      Jan Grant <Jan.Grant@bristol.ac.uk>
To:        CARTER Anthony <a.carter@cordis.lu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: cleaning out files
Message-ID:  <Pine.GSO.4.44.0304041536440.14291-100000@mail.ilrt.bris.ac.uk>
In-Reply-To: <200304041227.46615.a.carter@intrasoft.lu>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.44.0304041536440.14291-100000>