Hi everyone , have a great day
given below is the excerpt of code
k=`grep -i success /var/seamless/spool/tdr/ERS_$date1$time1* | wc -l`;
l=`grep -i fail /var/seamless/spool/tdr/ERS_$date1$time1* | wc -l`;
m=`grep -i entertain /var/seamless/spool/tdr/ERS_$date1$time1* | wc -l`;
n=$(($k+$l))
o=$(($m/$n))
echo $k $l $m $o
no $m is smaller then $n , hence $o will be something less then zero , but above given code doesn echo exact value of o ( should be something like 0.08766..) but it only echos 0
how can i get over this problem
Regards and thanks in anticipation