[해결방법] bash 에서 숫자 계산

This topic contains 0 replies, has 1 voice, and was last updated by  technote 2017-10-25 17:44.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #208

    technote
    Keymaster

    bash 에서 echo 1+2를 하면 string 그대로 1+2가 출력 된다.

    # echo 1+2 1+2

    실제로 계산을 하려면 아래와 같이 한다.

    # echo $((1+2)) 3

    • This topic was modified 1 year, 1 month ago by  technote.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.