代码:
#!/bin/bash read -n1 -p "input:" name case $name in y) echo "good";; n) echo "bad";; *) echo "my god";; esac exit 0
?
结果
?
?
日期:2014-05-16 浏览次数:20761 次
代码:
#!/bin/bash read -n1 -p "input:" name case $name in y) echo "good";; n) echo "bad";; *) echo "my god";; esac exit 0
?
结果
?
?