[Linux-bruxelles] ip sous debian

Olivier Laurent oli at aragne.com
Ven 4 Oct 15:20:25 CEST 2002


On ven, 04 oct 2002, at 12:44, Stephane Wirtel wrote:
> > eth0:
> > /sbin/ifconfig eth0 | grep inet | awk '{print $2}' | cut -f 2 -d :
> fait un swap entre awk et cut -->
> 
> /sbin/ifconfig eth0 | grep inet | cut -f 2 -d':' | awk '{ print $1}'
> > eth1:
> > /sbin/ifconfig eth1 | grep inet | awk '{print $2}' | cut -f 2 -d :

Pourquoi ? Ça fonctionne chez moi. Tu as une explication ?

-- 
Olivier Laurent.
P3B   : Club Python(-Zope) Belge ----------http://www.p3b.org
OS3B   : Club Open-Software(-Linux) Carolo  http://www.os3b.org 
Aragne : Python-Zope Solutions & Formations http://www.aragne.com




Plus d'informations sur la liste de diffusion Linux-bruxelles