I often execute the following command:
cat /dev/null > myfile
to clear the contents of a file. This comes in handy for large log files i need to clear out. I finally found a short cut that saves 13 keystrokes!
:> myfile
I often execute the following command:
cat /dev/null > myfile
to clear the contents of a file. This comes in handy for large log files i need to clear out. I finally found a short cut that saves 13 keystrokes!
:> myfile