📄 reply.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 + -