Friday, June 22, 2012

Clear contents of a file in UNIX

Clear contents of a file in UNIX
$cat /dev/null > file
or
$true > file

No comments:

Post a Comment