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

8 lines
147 B
Bash
Raw Permalink Normal View History

2013-04-10 22:43:41 -07:00
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