Created
November 11, 2012 22:37
-
-
Save NapoleonWils0n/4056557 to your computer and use it in GitHub Desktop.
macosx: get lan ip address
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/sh | |
#----------------------------------------------------------------------------------------# | |
# Get local ip address for wifi # | |
#----------------------------------------------------------------------------------------# | |
ifconfig en0 |grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment