Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: From: "Buchbinder, Barry (NIH/NIAID)" To: "'electa'" , cygwin AT cygwin DOT com Subject: RE: how to get IP with a shell command? Date: Tue, 20 Apr 2004 12:42:20 -0400 MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes How about: /c/tmp> ipconfig /all | gawk '/IP Address/ { print $NF }' -----Original Message----- From: electa Sent: Tuesday, April 20, 2004 12:26 PM To: cygwin AT cygwin DOT com Subject: how to get IP with a shell command? because i notice that 'hostname -i' doesn't work (inexistant -i option!) -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/