📜  if argument bash - Shell-Bash 代码示例

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

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

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