6 lines
133 B
Plaintext
6 lines
133 B
Plaintext
|
echo -n "Do you wish to ${1:#question}" '[y/n] ' ; read ${2:ans}
|
||
|
case "$$2" in
|
||
|
y*|Y*) ${3:#statement} ;;
|
||
|
*) ${4:#statement};;
|
||
|
esac
|