分类: shell相关

1 篇文章

shell练习命令1000行
#! /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 …