Created
January 16, 2015 17:59
-
-
Save eye9poob/9bd3cb8ecb61a0f5af3c to your computer and use it in GitHub Desktop.
show your bandwich use
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while true; do cat /proc/net/dev; sleep 1; done | awk -v dc="date \"+%T\"" '/wlan0/{i = $2 - oi; o = $10 - oo; oi = $2; oo = $10;dc|getline d; close(dc); if (a++) printf "%s %8.2f KiB/s in %8.2f KiB/s out\n", d, i/1024, o/1024}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment