是 ';;' 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。使用案例語句

相關內容