[mail_lists] Re: cleaning out files
Jim
jconner at enterit.com
Sat Apr 5 13:20:46 PST 2003
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
More information about the freebsd-questions
mailing list