Bash if true/false

Jmnote (토론 | 기여)님의 2021년 10월 19일 (화) 13:02 판

1 개요

Bash if true/false
A=true
if [ $A = true ]; then
  echo TRUE
fi
A=false
if [ $A = true ]; then
  echo TRUE
fi
A=true
if [ $A = false ]; then
  echo FALSE
fi
A=false
if [ $A = false ]; then
  echo FALSE
fi

2 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}