📜  bash 如果参数包含 - Shell-Bash 代码示例

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

代码示例1
if [ ! -z $1 ] #Check if argument for script is given
  then var=$1
  else var="argument_not_given"
fi