Identify the Mistake

What is wrong with the code
a=0 b=0 IF [$a -eq $b] then echo a is equal to b else echo " a is not equal to b" fi
a) Variables should be assigned on individual rows not next next
b) in if statement there should be space after "[" and before "]"
c) first echo statement should be enclosed within ""
d) IF and FI should be in lower case

Showing Answers 1 - 9 of 9 Answers

rishabh chourasia

  • Nov 21st, 2016
 

if and fi should be lowercase

  Was this answer useful?  Yes

Pragnesh Rathod

  • Oct 10th, 2017
 

d) IF and FI should be in lower case

  Was this answer useful?  Yes

Abdul

  • Sep 23rd, 2018
 

a,b

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions