goodboys

来自「UNIX+shell范例精解(第4版)代码」· 代码 · 共 20 行

TXT
20
字号
#!/bin/bash# Scriptname name: goodboysPS3="Please choose one of the three boys : "select choice in tom dan guydo 	case $choice in	tom)		echo Tom is a cool dude!		break;;		         # break out of the select loop	dan | guy )		echo Dan and Guy are both wonderful.		break;;	*) 		echo "$REPLY is not one of your choices" 1>&2		echo "Try again."		;;	esacdone

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?