alright, I can set a file or a variable with a range of numbers...
for example: (either way is fine by me)
Code:
$ cat range.txt
63
88
99
$ echo $RANGE
63 88 99
I have a test number
I want to run a command when the first number in $RANGE is greater than $TEST, and then stop the test on $RANGE. I DO NOT want the command to run on any number in $RANGE other than the first number greater than $TEST.
for example, (using static numbers for example, and keeping in mind that $TEST is 77 in this example)
Quote:
63 > $TEST (false, do nothing)
88 > $TEST (true, run command)
99 > $TEST (true, do nothing, since first correct conditional already meant and command already run)
|
or
Quote:
63 > $TEST (false, do nothing)
88 > $TEST (true, run command, and stop testing $RANGE vs $TEST)
|