Randolph Fritz wrote:

> I offer the following two scripts as candidates:

Here it is in sed (I used eth0 because I don't have a ppp link just
now).

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///.

-- 
                                        K<bob>
[EMAIL PROTECTED], http://www.jogger-egg.com/

Reply via email to