Comparing Numbers

  • + 0 comments

    !/bin/bash

    read x read y

    [ "y" ] && echo "X is equal to Y" && exit [ "y" ] && echo "X is less than Y" && exit echo "X is greater than Y"