摘要: 原文:http://apps.hi.baidu.com/share/detail/31263915在shell中字符串与数值的比较方法是不同的,要注意区分整数比较: -eq 等于,如:if [ "$a" -eq "$b" ] -ne 不等于,如:if [ "$a" -ne "$b" ] -gt 大于 阅读全文
posted @ 2017-02-18 10:01 范赟鹏 阅读(17412) 评论(0) 推荐(0) 编辑