Update: there is no need to open the file, as truncate will operate on the file name, e.g. truncate 'myfile.log', 0; will set the length of the file to zero, but you can use any desired length in that place.
--
I'd like to be able to assign to an luser
In reply to Re: Deleting on Files
by Albannach
in thread Deleting on Files
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |