Linux Shell 中与用户交互

Linux Shell 中与用户交互

 
#!/bin/sh  
echo -n "Continue?(Y/N)"  
read ANSWER  
  
case $ANSWER in  
      
    [Yy])   
    echo " you input is y or Y !"
    reboot 
    ;;  
    [Nn])   
    echo " Please continue to implement "$ANSWER  
    ;;  
esac  
 

你可能感兴趣的:(linux,linux,shell,职场,休闲,中与用户交互)