How do I compare two numbers in bash? I googled this and found this question/answer on SO:
Shell equality operators (=, ==, -eq)
Which suggests something like