[해결방법] [: -lt: unary operator expected

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

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

    technote
    Keymaster

    [: -lt: unary operator expected

    #!/bin/bash for num in "$@" do if [ $var -lt 10 ] then ..... fi done

    for loop 에서 num 이라고 변수 사용해놓고 $var로 쓰고 있었다. -_-

    • This topic was modified 11 months, 3 weeks ago by  technote.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.