• 1분 미만
(66 단어)
• ko
Bash String Comparison with if
Categories TechSavvy Bash
Tags
#TechSavvy
#ProgrammingLanguage
#Bash
Bash string comparison using “if”
”==” and ”!=” only can be used in case of string comparison.
if [ "$STRING" == "abc" ];then
echo "STRING is abc!"
fi
or
if [ "$STRING" = "abc" ];then
echo "STRING is abc!"
fi
Appendix. References
Share this article
Found this helpful? Share it with your network
관련 글
• 약 1분
(293 단어)
•5개 연관
Working with Bash Arrays
TechSavvyBash
#TechSavvy
#ProgrammingLanguage
• 약 1분
(301 단어)
•5개 연관
Bash: How to Check if Directory Exists
TechSavvyBash
#TechSavvy
#ProgrammingLanguage
• 약 2분
(437 단어)
•5개 연관
Bash eval - Dynamic Command Execution
TechSavvyBash
#TechSavvy
#ProgrammingLanguage
Join the Discussion
Share your thoughts and connect with other readers
댓글
GitHub 계정으로 로그인하여 댓글을 남겨보세요. 건설적인 의견과 질문을 환영합니다!
댓글을 불러오는 중...
댓글을 불러올 수 없습니다.