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

📄 hello.sh

📁 Shall高级编程
💻 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 + -