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



相关文章:

  • 2022-12-23
  • 2021-06-03
  • 2021-07-09
  • 2021-12-13
  • 2021-12-22
  • 2021-11-24
  • 2021-04-25
  • 2021-05-22
猜你喜欢
  • 2021-05-16
  • 2022-01-01
  • 2022-12-23
相关资源
相似解决方案