【shell】变量累加

#!/bin/bash
 
count=0
 
#每次累加1
count=$((${count} + 1))

实在太经典了忍不住记下来,非常有用。

posted @ 2023-05-14 22:56  xjce  阅读(96)  评论(0编辑  收藏  举报