Created
December 1, 2016 13:52
-
-
Save SunDi3yansyah/bf9bd4fcd8698bda6781922b24318e30 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
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