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 |