Aldo
1
Q:

bash if null or empty

if [ -z "$variable" ];
  then echo "$variable is null";
  else echo "$variable is not null";
fi
2

Tags

New to Communities?

Join the community