Gentoo Archives: gentoo-user

From: brullo nulla <brullonulla@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] file with IP?
Date: Fri, 04 Nov 2005 17:30:47
Message-Id: 93ae19410511040925x58aed3c4yaf67d82f5c0237b2@mail.gmail.com
In Reply to: Re: [gentoo-user] file with IP? by Jorge Almeida
1 > > Given this hell, I can't see why my original suggestion of parsing
2 > > ifconfig has not been taken into account... a couple of lines of
3 > >
4 > It has, at least by the OP (that would be me).
5 >
6 > /sbin/ifconfig|grep -m 1 inet|sed -e 's/^\s*inet addr://'|sed -e 's/\s.*$//'
7
8 Wow. You evil geniuses of regular expressions! °_°
9
10 I'm not that good with sed, awk and the like... I'd have used a couple
11 lines of python, probably. You know, I belong to the new, lazy,
12 spoiled generations of desktop Linux users, that no more learn all the
13 old Unix magic formulas... :)
14
15 m.
16
17 --
18 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] file with IP? Billy Holmes <billy@××××××.net>