In a Bash script I want to check if var1 is located between var2 and var3. But I can't find how to do it.
Something like this.
var1=15
var2=10
var3=20
if [ "$var1" is located beetween "$var2" and "$var3" ]
then
echo "ok"
else
echo "not ok"
fi
Can you help me please ?
Thank you.
man test
. If something else, please elaborate.