首页 > 技术文章 > shell 中 if then语句中会跟着-ne -ge之类的参数的含义
xysr-tom 2019-04-22 09:53 原文
if [ 1 -ne 1 ];then...fi这是指当1不等于1时执行then后的语句-eq:等于-ne:不等于-le:小于等于-ge:大于等于-lt:小于-gt:大于