bash number add

  • hosuk
    (유호석)
  • hosuk's Avatar 이 글의 작성자
  • Offline
  • Newbie
  • Newbie
더보기
14 Dec 2017 13:26 - 17 Dec 2017 10:50 #2941 작성자: hosuk
hosuk 님의 글: bash number add
num=$((num1 + num2))
num=$(($num1 + $num2))       # also works
num=$((num1 + 2 + 3))        # ...
num=$[num1+num2]             # old, deprecated arithmetic expression syntax

관련 팁 : sarc.io/index.php/forum/tips/1638-bash
Time to create page: 0.048 seconds
Powered by Kunena Forum