ex-13-04_read.sh
来自「Berkely的学生写的」· Shell 代码 · 共 14 行
SH
14 行
#!/bin/sh# Chapter 13 - The read command# This example demonstrates the use of the read commandYN=yesprintf "Do you want to play a game [$YN]? "read YN: ${YN:=yes}case $YN in [yY]|[yY][eE][sS]) exec xblast ;; *) echo "Maybe later." ;;esac
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?