标签:linux bash else sage inux one ash $1 exit
#! /bin/bashif [ $1 -eq 1 ];then
echo "you input is $1."
elif [ $1 -eq 2 ];then
echo "you input is $1."
else
echo "you input is wrong."
exit 2
fi
linux arguments variables usage
标签:linux bash else sage inux one ash $1 exit
原文地址:http://blog.51cto.com/546136/2060111