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脚本比较运算符



原文地址:https://www.cnblogs.com/deman/p/4274830.html