Linux-流量统计
cat /proc/net/dev |awk '{ if(NR!=1 && NR!=2) print $0 }' |sed 's/:/ /g'| awk '{ print($1,$2,$3,$5,$10,$11,$13)}'
- 【c/c++实现linux下各个网络流量抓取】https://blog.csdn.net/py8105/article/details/127135477
cat /proc/net/dev |awk '{ if(NR!=1 && NR!=2) print $0 }' |sed 's/:/ /g'| awk '{ print($1,$2,$3,$5,$10,$11,$13)}'