example15.17

来自「UNIX[1].shell范例精解(第4版)_code」· 17 代码 · 共 10 行

17
10
字号
#!/bin/csh # Program should check for null input -- T and TC shellsecho -n "Enter your name: "	set name = $<       # If user enters nothing, program will hangif { grep "$name" db >& /dev/null } then	echo Found nameendif

⌨️ 快捷键说明

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