Created
July 7, 2016 07:11
-
-
Save dreamingbinary/fbdc9467a157ef0a3178283bf59439ee to your computer and use it in GitHub Desktop.
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
#!/bin/sh | |
#for i in $(networksetup -listallhardwareports | grep Device | gawk '{print $2}') | |
for i in $( ifconfig -l ) | |
do | |
echo "\"$i\" :" \"$(ipconfig getifaddr $i)\" | |
# grep -e 'en*' -e 'tun*' | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment