shell 中键盘输入

命令read 测试test.sh #!/bin/bash read -p "Please input number:" num if [ "$num" -eq "1" ]; then         echo -e "\033[32mYou enter the number is 1\033[0m" elif [ "$num" -eq "2" ];then          echo -e "\0
相关文章
相关标签/搜索