?? reply.sh
字號:
#!/bin/bash# reply.sh# REPLY是提供給'read'命令的默認變量.echoecho -n "What is your favorite vegetable? "readecho "Your favorite vegetable is $REPLY."# 當且僅當沒有變量提供給"read"命令時, #+ REPLY才保存最后一個"read"命令讀入的值.echoecho -n "What is your favorite fruit? "read fruitecho "Your favorite fruit is $fruit."echo "but..."echo "Value of \$REPLY is still $REPLY."# $REPLY還是保存著上一個read命令的值,#+ 因為變量$fruit被傳入到了這個新的"read"命令中.echoexit 0
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -