Unixでは、';;'は連結演算子ですか?どのように動作しますか? [コピー]

Unixでは、';;'は連結演算子ですか?どのように動作しますか? [コピー]

先生は次の連結演算子をリストしました。

& && ( ) ; ;; | || 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。ユースケースの説明

おすすめ記事