[SOLVED} Bash script to compare months
My problem turns out to be embarrassingly stupid.
It appeared to me that jpollard's code for a string comparison "doesn't work". Seemingly comparison of two 3s reports as false. But that is because one is 03 and the other is 3, i.e., a string is compared to a number.
With the second 3 written as 03 same as the first one, the comparison "works", reporting as true.
Thanks for your help and patience.