Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash if greater than

if (( a > b )); then
    ...
fi
#Use above example or below one:
if [ "$a" -gt "$b" ]; then
    ...
fi
 
PREVIOUS NEXT
Tagged: #bash #greater
ADD COMMENT
Topic
Name
2+4 =