|
求教grep问题
用grep如何处理这种问题
100 packets transmitted, 100 received, 0% packet loss,
100 packets transmitted, 100 received, 0% packet loss,
100 packets transmitted, 100 received, 0% packet loss,
比如用grep取了三行数值
怎么能让他自动合成一行
就是变成
300 packets transmitted, 这样,然后丢包率也变成1个总的
丢包率 |
|