$ 0 0 I don't think this is easily possible (but I'm waiting to be surprised by good answers). You can use >> and truncate (why not >? here). Or you can use logrotate or something similar. But…