From: Vincent Lefevre <vincent@vinc17.org>
To: zsh-users@sunsite.dk
Subject: Re: how do I find my IP address
Date: Mon, 14 Jun 2004 13:57:36 +0200 [thread overview]
Message-ID: <20040614115736.GJ19941@ay.vinc17.org> (raw)
In-Reply-To: <20040613233708.A28043@redfish.gatech.edu>
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@vinc17.org> - 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
next prev parent reply other threads:[~2004-06-14 11:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-14 1:30 William Scott
2004-06-14 3:37 ` Jason Price
2004-06-14 10:58 ` Jussi Pakkanen
2004-06-14 11:57 ` Vincent Lefevre [this message]
2004-06-14 12:23 ` James Devenish
2004-06-14 13:18 ` Vincent Lefevre
2004-06-14 3:57 ` Timothy Luoma
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040614115736.GJ19941@ay.vinc17.org \
--to=vincent@vinc17.org \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).