You are viewing a single comment's thread. Return to all comments →
if [[ {@: 2:1} ]]
then echo "X is greater than Y"; fi if
[[ `${@: 3:1} -eq $`{@: 4:1} ]]
then echo "X is equal to Y"; fi
if [[ `${@: 5:1} -lt $`{@: 6:1} ]] then echo "X is less than Y"; fi
and you can enter the 06 values of X and Y at the same time
ex: script value1,value2,value3,value4,value5,value6
Seems like cookies are disabled on this browser, please enable them to open this website
Comparing Numbers
You are viewing a single comment's thread. Return to all comments →
!/bin/bash
if [[ {@: 2:1} ]]
then echo "X is greater than Y"; fi if
then echo "X is equal to Y"; fi
and you can enter the 06 values of X and Y at the same time
ex: script value1,value2,value3,value4,value5,value6