Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: how do I find my IP address
- X-seq: zsh-users 7543
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: how do I find my IP address
- Date: Mon, 14 Jun 2004 13:57:36 +0200
- In-reply-to: <20040613233708.A28043@xxxxxxxxxxxxxxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <67BDB808-BDA2-11D8-9044-000A957D73C4@xxxxxxxxxxxxxxxxxx> <20040613233708.A28043@xxxxxxxxxxxxxxxxxx>
- Sender: Vincent Lefevre <vincent@xxxxxxxxxx>
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 <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author