• 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: egrep explanation needed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: egrep explanation needed


  • Subject: Re: egrep explanation needed
  • From: David Dantowitz <email@hidden>
  • Date: Sat, 03 Sep 2011 23:24:32 -0400

On Sep 3, 2011, at 10:03 PM, Marc wrote:

> set theTxt to quoted form of (do shell script "curl '" & theURL & "' | egrep -A 17 'Full Address in Standard Format' | egrep -A 13 'height=\"34\"' | strings" without altering line endings)
>


1) pull the URL's content
2) Look for 'full address...' in the content and print that line AND 17 more lines
3) take those 18 lines and look for 'height...' now export that first line and 13 more lines
4) filter out any binary (non string) content (so line endings, etc.)

Hope this helps!

David

 _______________________________________________
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: 
 >egrep explanation needed (From: Marc <email@hidden>)

  • Prev by Date: egrep explanation needed
  • Next by Date: Lost Ability to Record
  • Previous by thread: egrep explanation needed
  • Next by thread: Lost Ability to Record
  • Index(es):
    • Date
    • Thread