grep 2.7 & linked-images
grep 2.7 & linked-images
- Subject: grep 2.7 & linked-images
- From: Christopher Stone <email@hidden>
- Date: Sun, 2 Jan 2011 04:27:04 -0600
Hey Folks,
This morning I got irked enough by the fact that 10.6.5's grep's 'ignore-case' flag breaks when the 'only-matching' flag is used to go looking for a solution. The solution was MacPorts and the most recent version of 'grep' 2.7.
The built-in in Snow Leopard is "grep (GNU grep) 2.5.1.
With 2.7 this works properly:
# Grab linked-images set cmdStr to "curl -L --user-agent 'Opera/9.70 (Linux ppc64 ; U; en) Presto/2.2.1' " & yourURL & " | /opt/local/bin/egrep --ignore-case --only-matching \"<a href[^>]+\\.jpg[^>]*>\"" do shell script cmdStr
|
_______________________________________________
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