📜  如果为 null 或为空,则 bash - C# 代码示例

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

代码示例1
if [ -z "$variable" ];
  then echo "$variable is null";
  else echo "$variable is not null";
fi