摘要: 1、字符串比较 [ $str1 = $str2 ] 等于[ $str1 != $str2 ] 不等于[ -z $str ] 空字符串返回true[ -n $str ] 或者 [ $str ] 非空字符串返回true 2、数字比较 count=1 if [ $count -gt 0 ];then ec 阅读全文
posted @ 2024-08-15 17:01 夏之夜 阅读(19) 评论(0) 推荐(0)