Skip to contentSkip to conversation

deleting the content of the file

DISCUSSION Kamal Kumar 2 participants 2 messages Nov 25, 2003

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 4 lines · Kamal Kumar

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