bash工具一些bash工具来简化脚本编写。目标bash版本:4.1用法终端: git clone git@github.com:panta82/bash-tools.git touch myscript.sh chmod +x myscript.sh nano myscript.sh我的脚本.sh: THIS_DIR= " $( cd $( dirname $0 ) && pwd ) " source " $THIS_DIR /bash-tools/tools.sh " # Process command line arguments and options USAGE_HEADER= " Description of my script " define_option " switch1 " " -s1: " " Description of switch 1