脚本为 script2
VIM 打开脚本
内容是 对用户的键盘输入反应
sh 运行脚本, 一次输入的是 y , 一次输入的是 n.
来源: http://www.bubuko.com/infodetail-3398800.html