在c下面有a++来实现自动加1
shell下要怎么实现,或者用for()?
能写个例子吗?小弟初学bash,谢谢指教
[solved]shell下的类似a++
- numbchild
- 帖子: 107
- 注册时间: 2010-03-16 12:34
[solved]shell下的类似a++
上次由 numbchild 在 2011-01-30 13:55,总共编辑 1 次。
My Blog: http://stardiviner.tumblr.com/
- cnkilior
- 论坛版主
- 帖子: 4984
- 注册时间: 2007-08-05 17:40
Re: shell下的类似a++
$(())
- numbchild
- 帖子: 107
- 注册时间: 2010-03-16 12:34
-
- 帖子: 1453
- 注册时间: 2008-05-24 8:30
Re: shell下的类似a++
代码: 全选
((a++))