ex-11-08_break.sh
来自「Berkely的学生写的」· Shell 代码 · 共 17 行
SH
17 行
#!/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 + =
减小字号Ctrl + -
显示快捷键?