From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19127 invoked from network); 14 Jun 2004 11:59:03 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.86) by ns1.primenet.com.au with SMTP; 14 Jun 2004 11:59:03 -0000 Received: (qmail 19977 invoked from network); 14 Jun 2004 11:58:36 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 14 Jun 2004 11:58:36 -0000 Received: (qmail 26917 invoked by alias); 14 Jun 2004 11:58:09 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7543 Received: (qmail 26907 invoked from network); 14 Jun 2004 11:58:09 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (qmailr@130.225.247.86) by sunsite.dk with SMTP; 14 Jun 2004 11:58:06 -0000 Received: (qmail 19116 invoked from network); 14 Jun 2004 11:58:06 -0000 Received: from vinc17.net1.nerim.net (HELO ay.vinc17.org) (62.4.18.82) by a.mx.sunsite.dk with SMTP; 14 Jun 2004 11:58:04 -0000 Received: from lefevre by ay.vinc17.org with local (Exim 4.32) id 1BZq5p-00076w-0C; Mon, 14 Jun 2004 13:57:37 +0200 Date: Mon, 14 Jun 2004 13:57:36 +0200 From: Vincent Lefevre To: zsh-users@sunsite.dk Subject: Re: how do I find my IP address Message-ID: <20040614115736.GJ19941@ay.vinc17.org> Mail-Followup-To: zsh-users@sunsite.dk References: <67BDB808-BDA2-11D8-9044-000A957D73C4@chemistry.ucsc.edu> <20040613233708.A28043@redfish.gatech.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20040613233708.A28043@redfish.gatech.edu> X-Mailer-Info: http://www.vinc17.org/mutt/ User-Agent: Mutt/1.5.6i Sender: Vincent Lefevre X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=-0.0 required=6.0 tests=BAYES_40 autolearn=no version=2.63 X-Spam-Hits: -0.0 On 2004-06-13 23:37:08 -0400, Jason Price wrote: > On most unix flavors, some varient of: > > ifconfig -a | grep inet | grep -v '127.0.0.1' | awk '{print $2}' > > should work. Not under linux. This is still OS-dependent. With ifconfig, you probably need to filter on \d+\.\d+\.\d+\.\d+ in particular. BTW, can zsh do such things internally (without using external programs like sed or perl)? -- Vincent Lefèvre - Web: 100% validated (X)HTML - Acorn / RISC OS / ARM, free software, YP17, Championnat International des Jeux Mathématiques et Logiques, etc. Work: CR INRIA - computer arithmetic / SPACES project at LORIA