Shell 变量自增实现方法

 

i=`expr $i + 1`;
let i+=1;
((i++));
i=$[$i+1];
i=$(( $i + 1 ))

 

 

 

参考:

https://www.cnblogs.com/faithfu/p/9472817.html

posted @ 2019-08-23 23:10  anobscureretreat  阅读(226)  评论(0)    收藏  举报