[dywang@dywmac ~]$ ifconfig eth0 | grep 'inet ' inet addr:192.168.1.104 Bcast:192.168.1.255 Mask:255.255.255.0
[dywang@dywmac ~]$ ifconfig eht0 | grep 'inet ' | sed 's/.*addr://' | sed 's/ .*//' 192.168.1.104