[ILUG] IP address

Damian O'Sullivan sullivad at piercom.ie
Tue Sep 5 12:21:51 IST 2000


 /sbin/ifconfig eth0 | grep addr: | cut -f2 -d: | cut -f1 -d' '
Will work...

On Tue, 5 Sep 2000, Jason Corcoran wrote:

> "John P . Looney" wrote:
> 
> > On Tue, Sep 05, 2000 at 12:10:48PM +0100, Jason Corcoran mentioned:
> > > echo `~corcoraj/bin/ifconfig -a|grep addr:| sed "/^inet addr:/,/^B/"`:0
> > > So for a given output
> >
> >  What does: sed "/^inet addr:/,/^B/" do ?
> >





More information about the ILUG mailing list