Created
January 14, 2015 03:10
-
-
Save volkstrader/13226bb1693ce6ece7bc to your computer and use it in GitHub Desktop.
grep ip address on eth0
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
ifconfig eth0 | grep "inet addr" | cut -d: -f2 | awk '{print $1}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment