1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA512 |
3 |
|
4 |
Bertram Scharpf wrote: |
5 |
> As this is quite long I would like to ask whether there is |
6 |
> some smarter way to do it. |
7 |
|
8 |
Add this to /etc/profile (or any other place you prefer): |
9 |
|
10 |
alias listips="LANG= /sbin/ifconfig | awk '/\<inet\>/{split(\$2,a,\":\");print a[2]}'" |
11 |
|
12 |
Then just run listips... |
13 |
|
14 |
Or put your command in a script file. ifconfig+awk is definitely very portable. |
15 |
|
16 |
- -- |
17 |
Arturo "Buanzo" Busleiman - Consultor Independiente en Seguridad Informatica |
18 |
Servicios Ofrecidos: http://www.buanzo.com.ar/pro/ |
19 |
Unase a los Foros GNU/Buanzo - La palabra Comunidad en su maxima expresion. |
20 |
-----BEGIN PGP SIGNATURE----- |
21 |
Version: GnuPG v1.4.7 (GNU/Linux) |
22 |
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org |
23 |
|
24 |
iD4DBQFHIOe7AlpOsGhXcE0RCg5VAJjz22DY9yliSsLFHAj9q+vF0IdEAJ9WFH0q |
25 |
7ivDKlgf2tGDF8s8CUve5Q== |
26 |
=wPMn |
27 |
-----END PGP SIGNATURE----- |
28 |
-- |
29 |
gentoo-user@g.o mailing list |