iftop -t -L1 -s1
iftop -t -L1 -s1 | grep "Total send and receive rate:"
如何才能使grep仅仅是“总发送和接收状态:”行?
发布于 2017-08-06 10:36:25
似乎iftop正在为STDERR编写不想要的行。要为您的grep删除这些内容,请使用如下命令行。
iftop -t -L1 -s1 2> /dev/null | grep "Total send and receive rate:"https://serverfault.com/questions/867107
复制相似问题