|
有一个文件的内容如下所示:
[root@dcxsbxfbak lab]# cat 1.txt
Mirror Status:
[color="red"]Duration in Current State = 15449 S
Different data = 98468864 KB
[color="Red"]Total Data Mirrored = 187143424 KB
Total Data Read = 197923816 KB
Total Data Written = 249478 KB
Status = SYNCING
Command succeeded
想取这个文件中的两个值进行计算
镜像的速度= [color="red"]Total Data Mirrored / [color="red"]Duration in Current State /1024
谢谢! |
|