📄 hello.sh
字号:
#!/bin/bash# hello.sh: Saying "hello" or "goodbye"#+ depending on how script is invoked.# Make a link in current working directory ($PWD) to this script:# ln -s hello.sh goodbye# Now, try invoking this script both ways:# ./hello.sh# ./goodbyeHELLO_CALL=65GOODBYE_CALL=66if [ $0 = "./goodbye" ]then echo "Good-bye!" # Some other goodbye-type commands, as appropriate. exit $GOODBYE_CALLfiecho "Hello!"# Some other hello-type commands, as appropriate.exit $HELLO_CALL
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -