I need some help with this
if [ $var -eq 'EASY' ]
but then it says
line 11: [: :: integer expression expected
I don't know what I'm doing wrong
I need some help with this
if [ $var -eq 'EASY' ]
but then it says
line 11: [: :: integer expression expected
I don't know what I'm doing wrong
-eq is used for numeric comparisons. = should be used to string comparisons. You should also quote variables in a test.
i.e.
if [ "$var" = EASY ]; then
...
fi