--Apple-Mail-1-943152680
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charsetF-8;
	formatðïwed


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ábor

"értelmez kzisztr: rekurzi --> lsd: rekurzi"



--Apple-Mail-1-943152680--