• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Router's IP address - how to grep
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Router's IP address - how to grep (From: Joe <email@hidden>)
 >Re: Router's IP address - how to grep (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Router's IP address - how to grep
  • Next by Date: Re: Router's IP address - how to grep
  • Previous by thread: Re: Router's IP address - how to grep
  • Next by thread: Re: Router's IP address - how to grep
  • Index(es):
    • Date
    • Thread