Plan 9 from Bell Labs’s /usr/web/sources/contrib/someone/root/rc/bin/chop
#!/bin/rc # chop file ... - truncate append-only files for (f) { chmod -a $f >[2]/dev/null >$f chmod +a $f }