📜  如果参数提供了 bash - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:17.888000             🧑  作者: Mango

代码示例1
if [ -z "$1" ]
  then
    echo "No argument supplied"
fi

if ["$1" ]
  then
    echo "Argument supplied is: "$1
fi