Use the following ifconfig command to get the ip address of unix machine

Code:
$ ifconfig -a | awk '/Bcast/{print $2}' | cut -c 5-19