Meno pipe [Re: [Tech] IP Posters]

Sergio Ballestrero s.ballestrero@c-sistemi.it
Gio 27 Lug 2000 20:43:48 CEST


On Thu, 27 Jul 2000, Gianni Bianchini wrote:

> On Thu, 27 Jul 2000, Cosimo Vagarini wrote:
> 
> > O anche:
> > /sbin/ifconfig ppp0 | grep inet | cut -d: -f2 | cut -d\  -f1
> 
> O anche:
> /sbin/ifconfig | awk -F : '/P-t-P/ {gsub("P-t-P","",$2); print $2}'

 Awk ? uff..

 /sbin/ifconfig ppp0 | perl -lne '/addr:(\S+)/ && print $1;'

:P

Sergio

--------------------------------------------------------------------------
 Things will get better despite             Sergio Ballestrero
our efforts to improve them.                  Sergio.Ballestrero@cern.ch
	-- Will Rogers                             S.Ballestrero@iname.com







Maggiori informazioni sulla lista flug-tech