Created
January 8, 2013 19:19
-
-
Save brianswisher/4487012 to your computer and use it in GitHub Desktop.
Get IP address on OSX Mountain Lion
This file contains hidden or 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=`ifconfig en0 | grep inet | grep -v inet6 | awk '{print $2}'` | |
echo $IP_ADDRESS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment