Re: dd: IP address via Terminal
Re: dd: IP address via Terminal
- Subject: Re: dd: IP address via Terminal
- From: Charles Bennett <email@hidden>
- Date: Tue, 26 Feb 2002 12:33:34 -0500
If you want to stay in the shell
how about something like.
host `hostname` | cut -c 35-
writing your own program to just emit the ip address is also pretty
simple..
chuck
dave wrote:
>
>
i'm trying to write a Terminal script that will return the IP
>
address of the current computer. i've managed to isolate my IP
>
address using netstat -i and/or netstat -r. how do i grab just the
>
IP address from the output?
>
>
if this is off-topic, i apologize, and request re-direct to
>
appropriate forum.
>
>
thanks.
>
dave dowling
>
>
free at last! how i found peace with God:
>
http://www.davedowling.com/steps.html
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
--
"Drawing on my fine command of language, I said nothing."
-- Unknown
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.