echo "num args : $#"비교문 :
if [ $# -eq 3 ]; then
echo "arg3:"$3elif [ $# -eq 2 ]; then
echo "arg2:"$2else
echo "exception"fi
is equal to: eq레퍼런스 : if...elif...fi condition in Unix
is not equal to: ne
is greater than: gt
is less than: lt
is greater than or equal to: ge
is less than or equal to: le
No comments:
Post a Comment