Re: deleting the content of the file

From: Mike Fedyk
Date: Tue Nov 25 2003 - 00:19:02 EST


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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/