How to create an empty file?

2010-01-25 Thread Peng Yu
'touch' will not make the file size empty if the file is not empty. I don't not want to use 'rm -f' first then touch because I might accidentally remove something if I type anything wrong. Could somebody let me a better way to create an empty file?

Re: How to create an empty file?

2010-01-25 Thread Mike Frysinger
On Monday 25 January 2010 12:22:09 Peng Yu wrote: 'touch' will not make the file size empty if the file is not empty. I don't not want to use 'rm -f' first then touch because I might accidentally remove something if I type anything wrong. Could somebody let me a better way to create an empty

Re: How to create an empty file?

2010-01-25 Thread Jim Meyering
Mike Frysinger wrote: On Monday 25 January 2010 12:22:09 Peng Yu wrote: 'touch' will not make the file size empty if the file is not empty. I don't not want to use 'rm -f' first then touch because I might accidentally remove something if I type anything wrong. Could somebody let me a better