On 16/03/2026 15:24, Arsen Arsenović wrote:
Pádraig Brady <[email protected]> writes:

Then you could generate zeros with: yes -z ''

Why not just read /dev/zero?

   $ pv </dev/zero >/dev/null
   98.3GiB 0:00:06 [15.7GiB/s]

Yes, though that seems to use a read()/write() loop,
and goes at about half the speed on my system.

yes -z would help with outputting arbitrary data anyway,
as currently NULs can't be passed through params.

I'm still considering yes -z as useful.

cheers,
Padraig

Reply via email to