maximum1.sh 299 B

12345678910111213141516171819
  1. #!/usr/bin/env bash
  2. # File: maximum1.sh
  3. # Name: D.Saravanan
  4. # Date: 24/02/2020
  5. # Script to display maximum of two numbers for the user input
  6. echo "Enter first number: "
  7. read x
  8. echo "Enter second number: "
  9. read y
  10. echo " "
  11. if [ $x -ge $y ]; then
  12. echo "$x is maximum"
  13. else
  14. echo "$y is maximum"
  15. fi