Quick shell tip:
If you want to truncate a file to zero bytes from the command-line, here's an easy way.
user@host [~]$ > filename
I used to use:
user@host [~]$ cp /dev/null filename
But the first approach is less typing.
Showing posts with label truncate. Show all posts
Showing posts with label truncate. Show all posts
Friday, April 11, 2008
Subscribe to:
Posts (Atom)