shell练习命令1000行 150 | 0 | shell相关 | doraqiqi 962 字 | 49 分钟 #! /bin/bash #猜年龄 版本1 age=87 read -p 'num: ' n if [ $n -eq $age ]; then echo 'you get it' elif [ $n -gt $age ]; then echo 'too big' elif [ $n -lt $age]; then ehco …