Re: Router's IP address - how to grep
Re: Router's IP address - how to grep
- Subject: Re: Router's IP address - how to grep
- From: "Mark J. Reed" <email@hidden>
- Date: Thu, 15 May 2008 17:06:09 -0400
On Thu, May 15, 2008 at 4:54 PM, Joe <email@hidden> wrote:
> Thanks Mark. Your script works as written and returns:
>
> "Internet Address: 95.88.232.31"
>
> I want to get only the numeric portion so I tried removing "Internet Address:" from the pattern. However that shows me the whole line.
>
> " o Internet Address: 95.88.232.31"
Looks like you left in the [^0-9]* at the front.Take that out - that
just allows for stuff between the colon and the IP. (the ^ in [^0-9]
means "not", so the whole thing means "anything that's not a number").
The IP address itself starts with the [0-9]* after it.
But note that it will match every IP-address-like string in the
output, of which there may be more than one...
--
Mark J. Reed <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden