How to clear the contents of a file?

From: Edward T. Chainani <etch_at_ginto.chem.admu.edu.ph>
Date: Fri, 16 Dec 2005 18:54:22 +0800 (PHT)

For Linux gurus out there: How do I clear the contents of a file without
erasing it? Is there a Linux command that will do this for me in one
step? I don't want to erase the file, just zero its contents, without
changing ownership and permissions.

Thanks in advance,

-- 
Edward T. Chainani
Chemistry Department &
National Chemistry Instrumentation Center (NCIC)
Ateneo de Manila University         
Loyola Heights, Quezon City         
Philippines
phone:  (632) 426-6001 loc. 5628
FAX: (632) 426-1323
e-mail: etch_at_chem.admu.edu.ph
Received on Fri Dec 16 2005 - 13:24:45 MST

This archive was generated by hypermail 2.4.0 : Sun Jun 11 2023 - 13:34:36 MST