We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Linux Shell
- Bash
- Comparing Numbers
- Discussions
Comparing Numbers
Comparing Numbers
Sort by
recency
|
248 Discussions
|
Please Login in order to post a comment
read X read Y if (( "X" > "Y" )); then echo "X is greater than Y " fi
if (( "X" == "Y" )); then echo "X is equal to Y" fi
if (( "X" < "Y" )); then echo "X is less than Y" fi
read X read Y if ((XY)); then echo "X is greater than Y" fi if ((X==Y)) ; then echo "X is equal to Y" fi
Simple Bash Code !