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

📄 usage-message.sh

📁 Shall高级编程
💻 SH
字号:
#!/bin/bash# usage-message.sh: ${1?"Usage: $0 ARGUMENT"}#  Script exits here if command-line parameter absent,#+ with following error message.#    usage-message.sh: 1: Usage: usage-message.sh ARGUMENTecho "These two lines echo only if command-line parameter given."echo "command line parameter = \"$1\""exit 0  # Will exit here only if command-line parameter present.# Check the exit status, both with and without command-line parameter.# If command-line parameter present, then "$?" is 0.# If not, then "$?" is 1.

⌨️ 快捷键说明

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