shell 实现i++

a=1
a=$(($a+1))
a=$[$a+1]
a=`expr $a + 1`
let a++
let a+=1

  以上都行。

posted @ 2019-12-03 15:55  singsong~  阅读(1601)  评论(0编辑  收藏  举报