20. Programming/Tools - Bash Shell

[bash shell] 값 증가

x미소 2018. 11. 12. 17:15


value=100

value2=100


value=$((value+1))

value=$((value+value2))

value=$((value=value+1))

value=$((value+=1))

value=$((value++))


let "value=value+1"

let "value=value+value2"

let "value+=1"

let "value++"


ref. https://askubuntu.com/questions/385528/how-to-increment-a-variable-in-bash


참 신기하다...