📚 本文 (
📝
字数:
53
⏱
阅读时间:
1 分钟
)
##Bash脚本风格
Bash脚本要以
1 2 3 4 5 6 7 8 9 10 11
| help() { cat << HELP Usage:./test.sh [name] this script is to print name h,--help display this help and exit
HELP exit 1 } [ "$1" = "h" -o "$1" = "--help" -o ! $# -eq 1 ] && help
|