ゆう's Blog
Bashで変数の値をインクリメントする方法

count=0 ((count++)) echo "$count" # → 1