I would like to share a way to check a string is a number in bash. This question has already been asked here, but the answer fits only for either integers or floats in classical format, when a number can be in scientific format, and it uses complex regex. Second, I don't have enough reputation to answer the existing question (totally fresh account here...).
So the question is:
How to (Easily) Check a String is a Number in bash?
with the string being like:
"1234"
"-1.234"
"1.23e4"
"+1.23E04"
etc.
Answer in the... answer below.