Created
December 25, 2018 04:50
-
-
Save jkeam/292d037c82f4c6f93a03a0d67650027a to your computer and use it in GitHub Desktop.
Get My Mac IP
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
#!/bin/bash | |
#ifconfig en0 | grep 'inet ' | awk '{print $2}' | |
ipconfig getifaddr en0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment