Created
November 28, 2016 07:58
-
-
Save kpmeen/ce83dc0d4ff6f80a4194256b0593969c to your computer and use it in GitHub Desktop.
Find current IP from shell script on OSX.
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
export CURR_IP_ADDRESS=$(ifconfig | awk '/inet /{print substr($2,0)}' | awk 'END{print}') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment