Hi,
As I understood you
#!/bin/ksh
gr="5-9"
td=8
i=$(echo $gr|cut -d - -f 1)
s=$(echo $gr|cut -d - -f 2)
if [[$td -ge $i && $td -le $s ]]; then
echo Today is in interval $gr
else
echo Today is out of interval $gr
fi
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.