ZEROTRUNC(8)ZEROTRUNC(8)
zerotrunc – truncate input on zero byte
aux/zerotrunc
Zerotrunc copies input to output until reading a first zero byte or end-of-file.
Zerotrunc can be used to read metadata of Plan 9 image files, e. g.:
% aux/zerotrunc < /dev/window
/sys/src/cmd/aux/zerotrunc.c
cat(1)