Re: egrep explanation needed
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