Revision: 28193
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 3, 2010 04:47 by jeromegamez
Initial Code
#! /bin/bash myen0=`ifconfig en0 | grep "inet " | grep -v 127.0.0.1 | awk '{print $2}'` if [ "$myen0" != "" ] then echo "Ethernet : $myen0" else echo "Ethernet : INACTIVE" fi myen1=`ifconfig en1 | grep "inet " | grep -v 127.0.0.1 | awk '{print $2}'` if [ "myen1" != "" ] then echo "AirPort : $myen1" else echo "Airport : INACTIVE" fi
Initial URL
Initial Description
Initial Title
Display current IP addresses (Ethernet & WiFi)
Initial Tags
Initial Language
Bash