Prompting for yes/no in csh
Dave Keber
dkeber at umaxc.weeg.uiowa.edu
Wed Jan 9 02:29:31 AEST 1991
This may sound like a stupid question to you Unix wizards, but I'm just
getting started in writing shell scripts and I would like to know:
What is the easiest way to prompt for a yes/no (or any string/number, etc.)
from a csh shell script?
I thought of writing a short C program that asks for input then writing the
answer to standard output, and then calling that program in my shell script,
but that seems a rather convoluted way of going about it...or is it?
Dave
More information about the Comp.unix.shell
mailing list