티스토리 뷰

공부

[Shell] compare to `String `, `Integer`

승가비 2019. 10. 14. 17:11
728x90

String

Day="요일"
if ["$Day" = "요일"]
then
    echo "요일"
fi

Integer

v=3027
if [v -eq 3027]
then
    echo "3027"
fi

 

[출처] http://blog.naver.com/PostView.nhn?blogId=msn19972&logNo=90014737234

728x90

'공부' 카테고리의 다른 글

[JS] RegExp  (0) 2019.10.15
[JS] CORS(Cross Origin Request Security)  (0) 2019.10.14
[Python] set symbolic link  (0) 2019.10.14
[Java] use `Collections.sisngletonList` at only one list  (0) 2019.10.14
[Spring] Mybatis NumberformatException  (0) 2019.10.14
댓글