Created
March 1, 2018 11:12
-
-
Save antoniopresto/6ac3df4ad9413777d11681ed4d0bfccd to your computer and use it in GitHub Desktop.
local machine ip
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 | sed -En 's/127.0.0.1//;s/.*inet (addr:)?(([0-9]*\.){3}[0-9]*).*/\2/p' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment