plz help me in simple calculation.
Have to substract two variable (in Bytes) and change the output into MB.
A=`more /tmp/size_info_old.out |awk NR==3`
echo "$A" > /tmp/rav/A.out
B=`more /tmp/size_info.out |awk NR==3`
echo "$B" > /tmp/B.out
C=$(((B-A))/1024/1024)
echo "$C" /tmp/final_report
or any other simple way to do this
Thanks in Advance