I’m having a syntax error with this if block and can’t I haven’t been able to correct it
if [[ $X >= 100] || [$Y >= 100 ]]
then
echo "..."
fi
I’ve rewrote this, but haven’t had any luck on finding the correct syntax. Thanks in advance!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is a syntax error, you should try :
NOTE
-geand such. This is just like arithmetic((...))is an arithmetic command, which returns an exit status of 0 if the expression is nonzero, or 1 if the expression is zero. Also used as a synonym forlet, if side effects (assignments) are needed. See http://mywiki.wooledge.org/ArithmeticExpression