1.file title:
#!/bin/bash
2.input:
echo $1
echo $2
3.if
# if
if [ "$1" = "N" ]
then echo normal
elif [ "$1" = 1 ]
then echo 'case1'
elif [ -n "$1" ]
then echo 'othercase'
fi
4.bash脚本比较运算符
1.file title:
#!/bin/bash
2.input:
echo $1
echo $2
3.if
# if
if [ "$1" = "N" ]
then echo normal
elif [ "$1" = 1 ]
then echo 'case1'
elif [ -n "$1" ]
then echo 'othercase'
fi
4.bash脚本比较运算符