一行的日志统计计算脚本
accu=0;sed -ne 's/.*bytesIn=\"\([0-9]*\)\"\/>/\1/p' stage_3.xml |while read num;do cur=$(($num-$accu));accu=$num; echo $(($cur/20/1024/1024));done
记在这里了,先不解释了。
accu=0;sed -ne 's/.*bytesIn=\"\([0-9]*\)\"\/>/\1/p' stage_3.xml |while read num;do cur=$(($num-$accu));accu=$num; echo $(($cur/20/1024/1024));done
记在这里了,先不解释了。