Linux 基础知识----shell
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脚本比较运算符
posted on 2015-02-05 14:49 Joyfulmath 阅读(170) 评论(0) 编辑 收藏 举报