Compare a variable that can have numeric or string as value
- by Tarun
I have a variable named Seconds_Behind_Master from one of my scripts. The problem is that this variable can either have a numeric value or can also take a string NULL as its value. Now, when I try to execute this script in shell it gets executed but gives a warning like this:
[: Illegal number: NULL
I believe it is due to the fact that in this…