in reply to How to erase the file content


perl -pi -e 's/.*//s' file