
선생님은 다음과 같은 연결 연산자를 나열합니다.
& && ( ) ; ;; | || new line
어때 ;; 연결 연산자와 그 역할은 무엇인가요?
답변1
선생님은 아마도 나중에 의 case
문과 bash
각 옵션 문이 로 닫히는 방법에 대해 이야기할 것입니다 ;;
.
다음과 같이:
case $space in
[1-6]*)
Message="All is quiet."
;;
[7-8]*)
Message="Start thinking about cleaning out some stuff. There's a partition that is $space % full."
;;
9[1-8])
Message="Better hurry with that new disk... One partition is $space % full."
;;
99)
Message="I'm drowning here! There's a partition at $space %!"
;;
*)
Message="I seem to be running with an nonexistent amount of disk space..."
;;
esac