"Bash if"의 두 판 사이의 차이

(새 문서: ==개요== ;Bash if <source lang='bash'> He="John Smith" if [ "$He" = "John Smith" ]; then echo "He is John Smith" else echo "He is not John Smith" fi # He is John Smith </source>...)
 
12번째 줄: 12번째 줄:


==같이 보기==
==같이 보기==
*[[Bash 숫자 비교]]
* [[Bash switch]]
* [[Bash 숫자 비교]]
* [[if]]
* [[if]]


[[분류: Bash]]
[[분류: Bash]]

2017년 6월 21일 (수) 18:23 판

1 개요

Bash if
He="John Smith"
if [ "$He" = "John Smith" ]; then
	echo "He is John Smith"
else
	echo "He is not John Smith"
fi
# He is John Smith

2 같이 보기

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