Created
September 16, 2014 07:22
-
-
Save bindiego/7af57b1a71c0888ec134 to your computer and use it in GitHub Desktop.
Display ip address
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 addr show eth0 | grep inet | awk '{ print $2; }' | sed 's/\/.*$//' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment