nosy
来自「Unix Shell编程权威指南的配套源代码,书是好书,不过习题没有答案,要自己」· 代码 · 共 18 行
TXT
18 行
#!/bin/bash# Scriptname: nosyecho -e "Are you happy? \c"read answerecho "$answer is the right response."echo -e "What is your full name? \c"read first middle lastecho "Hello $first"echo -n "Where do you work? "readecho I guess $REPLY keeps you busy!read -p "Enter your job title: "echo "I thought you might be an $REPLY."echo -n "Who are your best friends? "read -a friendsecho "Say hi to ${friends[2]}."
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?