Unix tools/yes

From HaskellWiki
< Unix tools
Revision as of 20:34, 19 December 2007 by Knome (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

yes

A simple utility to repeatedly print y to standard out.

  main = let y = putStrLn "y" >> y in y