• Unix How-To: Checking Responses with ckyorn

    Posted September 1, 2010 - 8:11 am

    In last week's column, we looked at ckrange, a Solaris tool for validating numeric responses in scripts. A related command, ckyorn (for "check yes or no"), ensures that a user responds with some version of yes or no. With similar behavior to ckrange, ckyorn has the same advantages of simplifying your code so that you don't have to check whether a user has entered y, Y, Yes, yes, n, N, No, no or even YeS or nO.

Join today!

See more content
Ask a Question