📄 ex-11-08_break.sh
字号:
#!/bin/sh# Chapter 11 - Infinite loops# This example demonstrates how the while loop can be used to# gather user input. The process function has been added to# demonstrate the execution of the case statementprocess () { echo $@ ; }while :do read CMD case $CMD in [qQ]|[qQ][uU][iI][tT]) break ;; *) process $CMD ;; esacdone
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -