Отменить изменения, внесенные в файлы в / usr / bin /

Возможно, позже ваш учитель расскажет об операторах case в bash и о том, как каждый оператор option закрывается с помощью ;;.

Как в:

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 Guide for Beginners — 7.3. Используя операторы case

1
08.06.2016, 21:55
0 ответов

Теги

Похожие вопросы