Created
March 18, 2016 05:48
-
-
Save polynomial/f1e52d33a906405d8df9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
bytes2=$(ifconfig | grep bytes | tail -1 | awk '{print $5}') | |
sent=$(($bytes2 - $bytes)) | |
bps=$(($sent * 8 / 1024 / 1024)) | |
echo "$bps and $sent" | |
sleep 1;bytes="$bytes2" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment