![유닉스에서는 ';;'이 연결 연산자인가요? 어떻게 작동하나요? [복사]](https://linux55.com/image/111873/%EC%9C%A0%EB%8B%89%EC%8A%A4%EC%97%90%EC%84%9C%EB%8A%94%20'%3B%3B'%EC%9D%B4%20%EC%97%B0%EA%B2%B0%20%EC%97%B0%EC%82%B0%EC%9E%90%EC%9D%B8%EA%B0%80%EC%9A%94%3F%20%EC%96%B4%EB%96%BB%EA%B2%8C%20%EC%9E%91%EB%8F%99%ED%95%98%EB%82%98%EC%9A%94%3F%20%5B%EB%B3%B5%EC%82%AC%5D.png)
선생님은 다음과 같은 연결 연산자를 나열했습니다.
& && ( ) ; ;; | || 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