이다 ';;' 유닉스의 체인 연산자? 어떻게 작동하나요?

이다 ';;' 유닉스의 체인 연산자? 어떻게 작동하나요?

선생님은 다음과 같은 연결 연산자를 나열합니다.

& && ( ) ; ;; | || 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

보다초보자를 위한 TLDP Bash 가이드 - 7.3. 사례문 사용

관련 정보