标签:inpu 根据 exit input 选项 read class echo bin
#!/bin/bash cd /iflytek/client/kafka/kafka/bin echo "1--ZDR_RY_WWAB_RYHLXX" echo "2--ZDR_RY_WWAB__RX_ZJHM" read -p "please input 1-10:" num case $num in 1) echo "执行ZDR_RY_WWAB_RYHLXX" ;; 2) echo "ZDR_RY_WWAB__RX_ZJHM" ;; *) echo "错误输入,请按要求输入" exit 1 ;; esac
标签:inpu 根据 exit input 选项 read class echo bin
原文地址:https://www.cnblogs.com/whxiao/p/13255033.html