How can I use an 'or' statement in the bash language? I have one integer variable and one string variable, if that makes a difference. All the stuff I try gets me expression expected errors. This is my code, basically:
Code:
if [ "$a" -eq 0 ] || [ "$b" -eq "" ]
then
echo "Error 1"
elif [ "$c" -eq 0 ] || [ "$d" -eq "" ]
then
echo "Error 2"
fi