RosettaCodeData/Task/Conditional-structures/UNIX-Shell/conditional-structures-2.sh

7 lines
142 B
Bash

if test 4 -ge 6
then echo '4 is greater than or equal to 6'
elif test 4 -lt 6
then echo '4 is less than 6'
else echo '4 compares not to 6'
fi