sjmulder / nonononoyes

Like yes(1), but more sophisticated

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NONONONOYES

Like yes(1), but more sophisticated: it can do nonononoyes, yesyesyesyesno,
yesnomaybe, or any pseudo-nonononoyes sequence.

It does so by looking at its name, which much be composed exclusively of
yeses, no's, and maybes, and repeatedly outputing a sequence of y and n lines
accordingly.

Examples:

    $ nonononoyes
    n
    n
    n
    n
    y
    n
    n
    n
    n
    y
    ^C

    $ yesyesyesyesno
    y
    y
    y
    y
    n
    y
    y
    y
    y
    n
    ^C

    $ yesnomaybe
    y
    n
    y
    ^C

    $ cp nonononoyes noyesnonoyes
    $ ./noyesnonoyes
    n
    y
    n
    n
    y
    ^C

    $ nononoyes | ./somescript.sh

By Sijmen J. Mulder <ik@sjmulder.nl>

About

Like yes(1), but more sophisticated


Languages

Language:Roff 55.0%Language:C 31.0%Language:Makefile 14.0%