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/
- Re: What distribution of linux to use. Linux Rocks!
- Re: What distribution of linux to use. Jim Darrough
- Re: What distribution of linux to use. Linux Rocks!
- Re: What distribution of linux to use. Edward Craig
- Re: What distribution of linux to use. Bob Miller
- Re: What distribution of linux to use. Linux Rocks!
- Ip extacting Timothy L. Bolz
- Re: Ip extacting Linux Rocks!
- Re: Ip extracting Randolph Fritz
- trade? Linda Carpenter
- Re: Ip extracting Bob Miller
- Re: Ip extracting Randolph Fritz
- Re: What distribution of linux to use. Dennis Soper
