📜  如果参数存在 bash - Shell-Bash 代码示例

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

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

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