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 To: cygwin AT cygwin DOT com From: Andrew DeFaria Subject: Re: how to get IP with a shell command? Date: Tue, 20 Apr 2004 13:52:43 -0700 Lines: 11 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet AT sea DOT gmane DOT org X-Gmane-NNTP-Posting-Host: 12.9.207.201 User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) In-Reply-To: Buchbinder, Barry (NIH/NIAID) wrote: > How about: > > /c/tmp> ipconfig /all | gawk '/IP Address/ { print $NF }' Why /all when the IP address comes out without it? Why gawk when awk is simply a symlink to gawk anyway? -- SENILE.COM found . . . Out Of Memory . . . -- 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/