#!/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
本文出自 “奇迹的少年” 博客,请务必保留此出处http://raffaelexr.blog.51cto.com/8555551/1751920
原文:http://raffaelexr.blog.51cto.com/8555551/1751920