fablefe 发表于 2018-8-23 09:50:09

shell 里[[与[的不同

NEW_COUNT=`grep -i "message window full" /ceno/product/masc/log/2009-11-25/opgw.log |wc -l`  if [[ $NEW_COUNT -gt $OLD_COUNT ]];then
  echo `date "+%Y-%m-%d %H:%m:%S"`" => $NEW_COUNT"
  echo $NEW_COUNT > /tmp/old_count.log
  $JAVA_CMD -classpath $CP:$CLASSPATH naisa.simulator.smg.SmsSimulator $SIM_HOME/smgsim.conf $* >>/tmp/bb.txt
  fi

页: [1]
查看完整版本: shell 里[[与[的不同