Shell 变量自增实现方法 i=`expr $i + 1`; let i+=1; ((i++)); i=$[$i+1]; i=$(( $i + 1 )) 参考: https://www.cnblogs.com/faithfu/p/9472817.html