good morning all,
having a bit of an issue with some logic in an HPUX 11 script.
any help would be appreciated.
basically if $tm2 contains the word minutes and $tm1 is > 15 or $tm2 contains the word hour then do some work.
i've varied the # of brackets and put the variables in quotes but still do not get the anticipated output.
any suggestions?
thanks in advance.
regards,
longhair
having a bit of an issue with some logic in an HPUX 11 script.
any help would be appreciated.
Code:
...
cat /files/dsdcwhd3.txt | while read off tty tm1 tm2 tm3 tm4
do
if
[[[$tm2 = "minutes" && $tm1 > "15"] || $tm2 = "hour"]]
then
print $off $tty $tm1 $tm2 >> /files/dsdcwhd3a.txt
fi
done
...
i've varied the # of brackets and put the variables in quotes but still do not get the anticipated output.
any suggestions?
thanks in advance.
regards,
longhair