歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux編程 >> SHELL編程

Linux Shell實現人機交互

Linux Shell實現人機交互   Shell代碼    www.2cto.com   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..."  
Copyright © Linux教程網 All Rights Reserved