maxim.sh 281 B

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