2003-11-25 05:12:44

by Kamal Kumar

[permalink] [raw]
Subject: deleting the content of the file

Hi All,
I want to delete the content of file through command promp.I do not want to
open the file.The size is more than 250MB.
If anybody could suggest me ,how to do it!
Regards,
Kamal
*********************************************************************
Disclaimer: The information in this e-mail and any attachments is
confidential / privileged. It is intended solely for the addressee or
addressees. If you are not the addressee indicated in this message, you may
not copy or deliver this message to anyone. In such case, you should destroy
this message and kindly notify the sender by reply email. Please advise
immediately if you or your employer does not consent to Internet email for
messages of this kind.
*********************************************************************


2003-11-25 05:18:15

by Mike Fedyk

[permalink] [raw]
Subject: Re: deleting the content of the file

On Tue, Nov 25, 2003 at 10:41:05AM +0530, Kamal Kumar wrote:
> Hi All,
> I want to delete the content of file through command promp.I do not want to
> open the file.The size is more than 250MB.
> If anybody could suggest me ,how to do it!

Truncating it should do the trick.

echo -n > file