
Mi maestro enumera los siguientes operadores de encadenamiento:
& && ( ) ; ;; | || new line
Cómo es ;; Un operador de encadenamiento y ¿qué hace?
Respuesta1
Probablemente tu maestro hablará más adelante sobre case
las declaraciones en bash
y cómo se cierra cada declaración de opción con ;;
.
Como en:
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
VerGuía TLDP Bash para principiantes - 7.3. Usando declaraciones de casos