在shell脚本中,有时为了计数,需要编写整数型变量,并用自增来显示。
shell脚本中的整数型变量,自增有多种实现方式,整体测试脚本如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
|
在shell脚本中,有时为了计数,需要编写整数型变量,并用自增来显示。
shell脚本中的整数型变量,自增有多种实现方式,整体测试脚本如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
|