goodboys

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

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

⌨️ 快捷键说明

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