标签:white $1 bin apple echo span hit tab style
#!/bin/bashif [ $1 -lt 3 ];then
echo redhat
elif [ $1 -eq 3 ];then
echo green
elif [ $1 -gt 3 -a $1 -lt 5 ];then
echo yellow
else
echo white
fi
--------------------------------------
case $1 in
1|one|first)echo redhat;;
2)echo yellow;;
3)echo green;;
*)echo blue;;
esac
标签:white $1 bin apple echo span hit tab style
原文地址:http://blog.51cto.com/11280985/2065290