Skip to content

Yes command – output a string repeatedly until killed

github.com/coreutils
1 pointsigma53 comments
On HN

Comments

I'm always impressed by the amount of code in this implementation, I'd like to know more about the scenarios where it was determined that for(;;) puts("y"); was too slow.

A long time ago I wrote a program that would pass through stdin but would also inject newlines every N seconds. Useful for log monitoring as a visual & temporal separator.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.