1
这里就是我试图做我如何用多选菜单变量创建一个shell脚本?
Please pick from the following
1) area1
2) area2
3) area3
Now pick a place based on the area you chose
1) place1
2) place2
3) place3
Based on $area and $place here is what you need...
我的猜测是我需要的,如果陈述案和组合,但我不能环绕这个问题我的头。
您是否尝试过'select'语句? – Barmar 2015-02-07 01:46:12
检查此问题http://stackoverflow.com/questions/226703/how-do-i-prompt-for-input-in-a-linux-shell-script – 2015-02-07 01:47:05