标签:style blog io ar color sp for on div
$ cat openstack_install.sh #!/usr/bin/env bash function usage { echo "Usage:$0 [OPTAION]..." echo "master install openstack master in this system." echo "compute install openstack compute in this system." exit } function process_option { case "$1" in -h|--help) usage ;; master) libary="keystone nova ceilometer horizon" ;; compute) libary="nova ceilometer" ;; *) usage esac } for arg in "$@"; do process_option $arg done for lib in $libary; do echo $lib done
标签:style blog io ar color sp for on div
原文地址:http://www.cnblogs.com/jachin/p/4111844.html