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

📄 and-list2.sh

📁 Shall高级编程
💻 SH
字号:
#!/bin/bashARGS=1        # Number of arguments expected.E_BADARGS=65  # Exit value if incorrect number of args passed.test $# -ne $ARGS && \echo "Usage: `basename $0` $ARGS argument(s)" && exit $E_BADARGS#  If condition 1 tests true (wrong number of args passed to script),#+ then the rest of the line executes, and script terminates.# Line below executes only if the above test fails.echo "Correct number of arguments passed to this script."exit 0# To check exit value, do a "echo $?" after script termination.

⌨️ 快捷键说明

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