how to get IP with a shell command?
Buchbinder, Barry (NIH/NIAID)
BBuchbinder@niaid.nih.gov
Tue Apr 20 16:49:00 GMT 2004
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@cygwin.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/
More information about the Cygwin
mailing list