I am trying to check for multiple variables and see if any of them is zero and I came up with the following:
if [[ -z $var1 ]] || [[ -z $var2 ]] || [[ -z $var3 ]] || [[ -z $var4 ]] || [[ -z $var5 ]] || [[ -z $var6 ]] || [[ -z $var7 ]] || [[ -z $var8 ]]; then
echo GOOD
fi
This works, but is there any other neat alternative to this?