Get IP address Command.

i need to pull ip address out after this command

ifconfig | grep jnc0 -1

output:

BOBVILLAMAC:~ bvilla$ ifconfig | grep jnc0 -1    inet 10.16.91.1 netmask 0xffffff00 broadcast 10.16.91.255

does anyone know how to do that

Try:

$ ifconfig jnc0 | awk '$1 == "inet" { print $2; exit }'

Or try also:

$ ipconfig getifaddr jnc0