Skip to content

Instantly share code, notes, and snippets.

@rushipkar90
Created September 25, 2015 16:38
Show Gist options
  • Save rushipkar90/d084a1221518a2486c5d to your computer and use it in GitHub Desktop.
Save rushipkar90/d084a1221518a2486c5d to your computer and use it in GitHub Desktop.
geteth0.sh
#!/bin/bash
/sbin/ifconfig eth0 |grep bytes|cut -d":" -f2|cut -d" " -f1
/sbin/ifconfig eth0 |grep bytes|cut -d":" -f3|cut -d" " -f1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment