On Tue, May 23, 2000 at 03:26:30PM -0700, Bob Miller wrote:
> 
> jogger-egg ~> ifconfig eth0 | sed -n 's/.*inet addr:\([0-9.]*\).*/\1/p'
> 216.218.195.210
> 
> It's actually not so hard in sed if you know about the -n flag
> and the /p modifier to s///.
> 

Most excellent; that is probably the shortest and most direct version.
-- 
Randolph Fritz
Eugene, Oregon, USA

Reply via email to