一个监控网卡流量的shell脚本
实现代码:#!/bin/basheth_in_old=$(ifconfig eth0|grep "RX bytes"|sed "s/RX bytes://"|awk "{print $1}")eth_out_old=$(ifconfig eth0|grep "RX bytes"|sed "s/.*TX bytes://"|awk "{print $1}")sleep 1eth_in_new=$(ifconfig eth0|grep "RX bytes"|s...