redis-cli info > /tmp/red.txt 2>/dev/null
m1=`cat /tmp/red.txt|grep total_commands_processed|sed -r 's/\r//'|awk -F ":" '{print $2}'`
sleep 10
continue
redis-cli info > /tmp/red1.txt 2>/dev/null
m2=`cat /tmp/red1.txt|grep total_commands_processed|sed -r 's/\r//'|awk -F ":" '{print $2}'`
ma=$(echo "($m2-$m1)/10"|bc)
echo $ma