I'm going to be retrieving two numbers as strings into variables A and B:
A will be in the form:
"10" or "0x0A" or "0x0a"
In other words, A will be either a decimal or hexadecimal number (with 0x prefix).
B will be in the form:
"image-000A" or "image-000a"
B will always be "image-" followed by 4 hexadecimal digits.
I need to compare the two numeric values and test if B > A. How do I do that in a shell script?