#!/bin/bash
E_WRONG_ARGS=65
scripts_parameters="-a -h -m -z"
# -a = all , -h = help , 等等
if [ $# -ne $Number_of_expected_args ]
then
echo "Usage: `basename $0` $script_parameters"
# `basename $0` 是这个脚本的文件名
exit $E_WRONG_ARGS
fi
本文转自奇迹的少年博客51CTO博客,原文链接http://blog.51cto.com/raffaelexr/1751920如需转载请自行联系原作者
liliangchun