fork download
  1. #!/bin/bash
  2. # your code goes here
  3.  
  4. echo "enter first number"
  5. read a
  6.  
  7. echo "enter second number"
  8. read b
  9.  
  10. if ["$a" \> "$b"]
  11. then
  12. echo "a is greater"
  13.  
  14. else
  15. echo "b is greater"
  16. fi
Success #stdin #stdout #stderr 0.01s 5516KB
stdin
5
1
stdout
enter first number
enter second number
b is greater
stderr
./prog.sh: line 10: [5: command not found