while true;do stty -icanon min 0 time 100 echo -n "Automatic execute ten seconds after,Are you sure you want to start the task(yes or no)?" read Arg case $Arg in Y|y|YES|yes) break;; N|n|NO|no) exit;; "") #Autocontinue break;; esac done echo echo "others function..."
Linux Shell实现人机交互
猜你喜欢
转载自lynnkong.iteye.com/blog/1823051
今日推荐
周排行