You are viewing a single comment's thread. Return to all comments →
read X read Y
if [ Y ]; then echo "X is less than Y" elif [ Y ]; then echo "X is greater than Y" else echo "X is equal to Y" fi
Comparing Numbers
You are viewing a single comment's thread. Return to all comments →
read X read Y
if [ Y ]; then echo "X is less than Y" elif [ Y ]; then echo "X is greater than Y" else echo "X is equal to Y" fi