Skip to content

Instantly share code, notes, and snippets.

@dreamingbinary
Created July 7, 2016 07:11
Show Gist options
  • Save dreamingbinary/fbdc9467a157ef0a3178283bf59439ee to your computer and use it in GitHub Desktop.
Save dreamingbinary/fbdc9467a157ef0a3178283bf59439ee to your computer and use it in GitHub Desktop.
#!/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