⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 reply.sh

📁 Shall高级编程
💻 SH
字号:
#!/bin/bash# reply.sh# REPLY is the default value for a 'read' command.echoecho -n "What is your favorite vegetable? "readecho "Your favorite vegetable is $REPLY."#  REPLY holds the value of last "read" if and only if#+ no variable supplied.echoecho -n "What is your favorite fruit? "read fruitecho "Your favorite fruit is $fruit."echo "but..."echo "Value of \$REPLY is still $REPLY."#  $REPLY is still set to its previous value because#+ the variable $fruit absorbed the new "read" value.echoexit 0

⌨️ 快捷键说明

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