📅  最后修改于: 2022-03-11 14:49:45.231000             🧑  作者: Mango
# In bash, you should do your check in arithmetic context:
if (( a > b )); then
...
fi
# For POSIX shells that don't support (()), you can use -lt and -gt.
if [ "$a" -gt "$b" ]; then
...
fi