Last active
December 27, 2015 13:56
-
-
Save patoroco/cee9ed5c24b1ea0f67c3 to your computer and use it in GitHub Desktop.
Get my IP (en0 interface)
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 | awk '/en0/{getline; print}' | awk 'NR==2 {print $2}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment