- 论坛徽章:
- 2
|
回复 2# haooooaaa
谢谢,我知道你的意思了,可是还是不行,不知道为啥最后老是有一个乱码,所以提取的只有那个乱码,
如果文件中的内容是这样的:
- Read 2.82s, Data:8261632, Speed:2.798MB/s - 78.79%
^M - Read 2.92s, Data:8708096, Speed:2.847MB/s - 83.05%
^M - Read 3.02s, Data:9064448, Speed:2.865MB/s - 86.45%
^M - Read 3.12s, Data:9150464, Speed:2.799MB/s - 87.27%
^M - Read 3.22s, Data:9256960, Speed:2.744MB/s - 88.28%
^M - Read 3.32s, Data:9547776, Speed:2.744MB/s - 91.05%
^M - Read 3.42s, Data:9924608, Speed:2.769MB/s - 94.65%
^M - Read 3.52s, Data:10383360, Speed:2.814MB/s - 99.02%
^M - Read 3.62s, Data:10477568, Speed:2.760MB/s - 99.92%
^M - Read 3.72s, Data:10477568, Speed:2.686MB/s - 99.92%
^[[76G-> Speed=^[[1;32m^[[1m^[[4m2.688^[[0mMB/s, DiskData=0(0.00G)/pc, IOPS=0.00GB, DiskTime=0.00s, DiskSpeed=0.000MB/s
^[[?25h
怎么提取倒数第三行里的那个 - Read 3.72s, Data:10477568, Speed:2.686MB/s - 99.92%呢?用你这个方法提取的老是^[[?25h |
|