记录一下 下次用的时候直接可复制黏贴
#!/bin/bash
cur_dir=`dirname $0`
cur_dir=`readlink -f ${cur_dir}`
echo ${cur_dir}
help_msg() {
echo "============== usage ==============="
echo "./some_script.sh [参数1] [参数2] [参数3]"
echo "./some_script.sh parm1 parm2 parm3"
}
if [[ $# -lt 3 ]] || [[ $# -gt 3 ]] ; then
help_msg
exit 1
fi
PARM1=$1
PARM2=$2
PARM3=$3