if command
command if $?=0
else
command if $?!=0
fi
예
아니오
다음 구문은 무엇을 의미합니까: ${variable:=value}
변수가 비어 있으면 대체 값을 표시합니다.
변수가 비어 있지 않으면 대체 값 표시합니다.
비어 있는 경우 변수에 새 값을 할당합니다.
다음 조건부 대체 구조의 구문이 올바른 것 같나요? 왜 그런지 설명해주세요.
case $variable in
value1)
commands if $variable = value1
value2)
commands if $variable = value2
*)
commands for all values of $variable != of value1 and value2
;;
esac