From: "Gábor SEBESTYÉN" Date: 2005-10-18T03:36:55+09:00 Subject: Re: Querying IP Address of a NIC --Apple-Mail-1-943152680 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8; format=flowed On 2005.10.17., at 20:01, Joe Van Dyk wrote: > Other than parsing the output of `sudo /sbin/ifconfig`, anyone know of > a way to get the current IP address of a NIC? (say, eth0). > Try this: ifconfig en0 inet | grep inet | awk '{print $2}' Where "en0" is the subject of query. Cheers, G=C3=A1bor "=C3=A9rtelmez=C5=91 k=C3=A9zisz=C3=B3t=C3=A1r: rekurzi=C3=B3 --> l=C3=A1s= d: rekurzi=C3=B3" --Apple-Mail-1-943152680--