Created
March 24, 2011 12:31
-
-
Save jldupont/884972 to your computer and use it in GitHub Desktop.
Retrieve IP address associated with eth0 (bash)
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
ip address | grep eth0 | grep inet | awk -F" " '{print $2}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment