-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Bertram Scharpf wrote:
> As this is quite long I would like to ask whether there is
> some smarter way to do it.
Add this to /etc/profile (or any other place you prefer):
alias listips="LANG= /sbin/ifconfig | awk '/\<inet\>/{split(\$2,a,\":\");print
a[2]}'"
Then just run listips...
Or put your command in a script file. ifconfig+awk is definitely very portable.
- --
Arturo "Buanzo" Busleiman - Consultor Independiente en Seguridad Informatica
Servicios Ofrecidos: http://www.buanzo.com.ar/pro/
Unase a los Foros GNU/Buanzo - La palabra Comunidad en su maxima expresion.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD4DBQFHIOe7AlpOsGhXcE0RCg5VAJjz22DY9yliSsLFHAj9q+vF0IdEAJ9WFH0q
7ivDKlgf2tGDF8s8CUve5Q==
=wPMn
-----END PGP SIGNATURE-----
--
[EMAIL PROTECTED] mailing list