shithub: riscv

Download patch

ref: 82c892a697aa69844b9ab90da183104c66f30842
parent: 48555e785ac03a29aad4c027674d9487d148227c
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Jan 16 11:17:27 EST 2021

zerotrunc(8): add manpage

--- /dev/null
+++ b/sys/man/8/zerotrunc
@@ -1,0 +1,20 @@
+.TH ZEROTRUNC 8
+.SH NAME
+zerotrunc \- truncate input on zero byte
+.SH SYNOPSIS
+.B aux/zerotrunc
+.SH DESCRIPTION
+.PP
+.B Zerotrunc
+copies input to output until reading a first zero byte or end-of-file.
+.SH EXAMPLES
+.B Zerotrunc
+can be used to read metadata of Plan 9 image files, e. g.:
+.IP
+.EX
+% aux/zerotrunc < /dev/window
+.EE
+.SH SOURCE
+.B /sys/src/cmd/aux/zerotrunc.c
+.SH "SEE ALSO"
+.IR cat (1)